.psg-access-page,
.psg-shell {
  --psg-blue-950: #032f4f;
  --psg-blue-900: #004a78;
  --psg-blue-700: #006da8;
  --psg-blue-100: #dceef7;
  --psg-blue-50: #eff7fb;
  --psg-orange: #f7941d;
  --psg-orange-dark: #c96c00;
  --psg-ink: #173042;
  --psg-muted: #607383;
  --psg-border: #d6e2e9;
  --psg-surface: #ffffff;
  --psg-surface-soft: #f5f8fa;
  --psg-danger: #b42318;
  --psg-success: #137a4a;
  --psg-radius-sm: 10px;
  --psg-radius-md: 18px;
  --psg-radius-lg: 28px;
  --psg-shadow: 0 22px 60px rgba(3, 47, 79, 0.14);
  --psg-font: "Source Sans 3", "Segoe UI", sans-serif;
  --psg-display: "Bitter", Georgia, serif;
}

.psg-shell .page-loader-wrapper {
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 47, 79, 0.38);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.psg-shell .page-loader-wrapper.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.psg-shell .page-loader-wrapper .loader {
  position: relative;
  top: auto;
  display: flex;
  min-width: 172px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 24px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--psg-radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(3, 47, 79, 0.24);
}

.psg-shell .page-loader-wrapper .md-preloader {
  width: 42px;
  height: 42px;
}

.psg-shell .page-loader-wrapper .md-preloader svg {
  width: 42px;
  height: 42px;
}

.psg-shell .page-loader-wrapper .md-preloader .pl-red {
  stroke: var(--psg-blue-700);
}

.psg-shell .page-loader-wrapper p {
  margin: 0;
  color: var(--psg-ink);
  font-family: var(--psg-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  .psg-shell .page-loader-wrapper,
  .psg-shell .page-loader-wrapper .md-preloader svg,
  .psg-shell .page-loader-wrapper .md-preloader svg circle {
    animation: none;
    transition: none;
  }
}

.psg-access-page,
.psg-access-page *,
.psg-shell,
.psg-shell * {
  box-sizing: border-box;
}

.psg-access-page {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--psg-ink);
  background: var(--psg-blue-50);
  font-family: var(--psg-font);
  font-size: 16px;
}

.psg-access-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(0, 109, 168, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 109, 168, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

.psg-access-page form {
  min-height: 100vh;
}

.psg-access-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(500px, 1.08fr);
  min-height: 100vh;
}

.psg-access-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(145deg, var(--psg-blue-950) 0%, var(--psg-blue-900) 58%, #00689d 100%);
}

.psg-access-intro::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 420px;
  height: 340px;
  background: url("../images/simbolo-senac.png") center / contain no-repeat;
  content: "";
  filter: brightness(0) invert(1);
  opacity: 0.12;
  pointer-events: none;
}

.psg-access-senac {
  position: relative;
  z-index: 1;
  width: min(190px, 48%);
  max-height: 84px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  transform: translateX(-23.67%);
}

.psg-access-intro-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: auto 0;
  padding: 64px 0;
}

.psg-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--psg-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.psg-access-intro h1 {
  max-width: 620px;
  margin: 0 0 24px;
  color: #ffffff;
  font-family: var(--psg-display);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.07;
}

.psg-access-intro p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.psg-access-marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.psg-access-marker::before {
  width: 48px;
  height: 3px;
  background: var(--psg-orange);
  content: "";
}

.psg-access-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(28px, 6vw, 80px);
}

.psg-access-card {
  width: min(100%, 520px);
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid rgba(0, 74, 120, 0.1);
  border-radius: var(--psg-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--psg-shadow);
}

.psg-access-card-wide {
  width: min(100%, 680px);
}

.psg-email-confirmation {
  text-align: center;
}

.psg-email-confirmation-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 4px auto 24px;
  border-radius: 50%;
  color: var(--psg-blue-700);
  background: var(--psg-blue-50);
  place-items: center;
}

.psg-email-confirmation-icon .material-icons {
  font-size: 38px;
}

.psg-email-confirmation h2 {
  margin: 8px 0 12px;
  color: var(--psg-blue-950);
  font-family: var(--psg-display);
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
}

.psg-email-confirmation > p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--psg-slate-600);
}

.psg-email-confirmation-note {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 74, 120, 0.14);
  border-radius: var(--psg-radius-md);
  color: var(--psg-blue-900);
  background: rgba(232, 245, 252, 0.7);
  text-align: left;
}

.psg-email-confirmation-note .material-icons {
  flex: 0 0 auto;
  color: var(--psg-blue-700);
}

.psg-email-confirmation-note p {
  margin: 0;
}

.psg-email-confirmation .psg-primary-button {
  display: inline-flex;
  width: auto;
  min-width: 220px;
  align-items: center;
  justify-content: center;
}

.psg-admin-login-page {
  background: linear-gradient(145deg, #f7fafc 0%, var(--psg-blue-50) 100%);
}

.psg-admin-login-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 56px);
}

.psg-admin-login-card {
  width: min(100%, 440px);
  padding: clamp(30px, 5vw, 44px);
}

.psg-admin-login-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 68px;
  margin: 0 auto 30px;
  object-fit: contain;
}

.psg-admin-login-card .psg-access-heading {
  text-align: center;
}

.psg-admin-login-card .psg-access-heading h1 {
  margin: 0 0 8px;
  color: var(--psg-blue-950);
  font-family: var(--psg-display);
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.2;
}

.psg-access-program {
  width: auto;
  height: 100px;
  margin-bottom: 28px;
  object-fit: contain;
}

.psg-access-heading {
  margin-bottom: 30px;
}

.psg-access-heading h2 {
  margin: 0 0 8px;
  color: var(--psg-blue-950);
  font-family: var(--psg-display);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.psg-access-heading p {
  margin: 0;
  color: var(--psg-muted);
  line-height: 1.55;
}

.psg-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.psg-field {
  margin-bottom: 22px;
}

.psg-field-full {
  grid-column: 1 / -1;
}

.psg-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--psg-ink);
  font-size: 15px;
  font-weight: 700;
}

.psg-field-control {
  position: relative;
}

.psg-field-control .material-icons {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  color: var(--psg-blue-700);
  font-size: 21px;
  transform: translateY(-50%);
  pointer-events: none;
}

.psg-field-control .form-control {
  width: 100%;
  height: 50px;
  padding: 10px 14px 10px 48px;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-sm);
  color: var(--psg-ink);
  background: #ffffff;
  box-shadow: none;
  font-family: var(--psg-font);
  font-size: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.psg-field-control .form-control:focus {
  border-color: var(--psg-blue-700);
  box-shadow: 0 0 0 4px rgba(0, 109, 168, 0.14);
}

.psg-field-help {
  display: block;
  margin-top: 6px;
  color: var(--psg-muted);
  font-size: 13px;
}

.psg-primary-button {
  width: 100%;
  min-height: 50px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--psg-radius-sm);
  color: #ffffff;
  background: var(--psg-orange-dark);
  box-shadow: 0 10px 24px rgba(201, 108, 0, 0.2);
  font-family: var(--psg-font);
  font-size: 16px;
  font-weight: 700;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.psg-primary-button:hover,
.psg-primary-button:focus {
  color: #ffffff;
  background: #a85b00;
  box-shadow: 0 13px 28px rgba(201, 108, 0, 0.28);
  outline: 3px solid rgba(247, 148, 29, 0.3);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.psg-login-submit {
  position: relative;
}

.psg-login-submit.is-loading {
  pointer-events: none;
}

.psg-login-submit.is-loading .psg-button-icon {
  display: none;
}

.psg-login-submit.is-loading .psg-primary-button {
  padding-left: 54px;
  padding-right: 54px;
  background: #a85b00;
  cursor: wait;
  transform: none;
}

.psg-button-spinner {
  position: absolute;
  top: 50%;
  left: 20px;
  display: none;
  width: 19px;
  height: 19px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
}

.psg-login-submit.is-loading .psg-button-spinner {
  display: block;
  animation: psg-button-spin 700ms linear infinite;
}

@keyframes psg-button-spin {
  to {
    transform: rotate(360deg);
  }
}

.psg-access-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.psg-access-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--psg-blue-900);
  font-weight: 700;
  text-decoration: none;
}

.psg-access-links a:hover,
.psg-access-links a:focus {
  color: var(--psg-orange-dark);
  box-shadow: inset 0 -1px 0 currentColor;
  outline: none;
}

.psg-access-links .material-icons {
  margin-right: 6px;
  font-size: 19px;
}

.psg-access-links-centered {
  justify-content: center;
}

.psg-access-home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 16px auto 0;
  color: var(--psg-blue-900);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.psg-access-home-link .material-icons {
  font-size: 18px;
}

.psg-access-home-link:hover,
.psg-access-home-link:focus {
  color: var(--psg-orange-dark);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 currentColor;
  outline: none;
}

.psg-access-program-link {
  display: inline-block;
}

.psg-access-program-link:hover img,
.psg-access-program-link:focus img {
  opacity: 0.8;
}

.psg-access-program-link:focus-visible {
  outline: 3px solid var(--psg-orange);
  outline-offset: 3px;
}

.psg-access-support {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--psg-border);
  color: var(--psg-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .psg-access-shell {
    grid-template-columns: 1fr;
  }

  .psg-access-intro {
    min-height: auto;
    padding: 28px clamp(24px, 7vw, 64px) 38px;
  }

  .psg-access-intro-copy {
    padding: 48px 0 20px;
  }

  .psg-access-intro h1 {
    font-size: clamp(34px, 8vw, 52px);
  }

  .psg-access-marker {
    display: none;
  }

  .psg-access-panel {
    min-height: auto;
    padding: 34px 20px 56px;
  }
}

@media (max-width: 600px) {
  .psg-access-card {
    padding: 26px 22px;
    border-radius: var(--psg-radius-md);
  }

  .psg-access-program {
    height: 80px;
  }

  .psg-field-grid {
    grid-template-columns: 1fr;
  }

  .psg-access-links {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psg-access-page *,
  .psg-access-page *::before,
  .psg-access-page *::after,
  .psg-shell *,
  .psg-shell *::before,
  .psg-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Shell autenticado */
.psg-shell {
  min-width: 0;
  color: var(--psg-ink);
  background: #f3f7f9;
  font-family: var(--psg-font);
  font-size: 16px;
}

.psg-shell .psg-topbar {
  height: 64px;
  min-height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--psg-blue-950);
  box-shadow: 0 2px 10px rgba(3, 47, 79, 0.16);
  font-family: var(--psg-font);
}

.psg-shell .psg-topbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  min-height: 64px;
  margin: 0;
  padding: 0 24px 0 20px;
}

.psg-shell .psg-topbar .container-fluid::before,
.psg-shell .psg-topbar .container-fluid::after {
  display: none;
  content: none;
}

.psg-shell .psg-topbar .navbar-header {
  display: flex;
  flex: 0 0 264px;
  align-items: center;
  width: 264px;
  height: 64px;
  margin: 0;
  padding: 0;
  float: none;
}

.psg-shell .psg-topbar .bars {
  position: relative;
  display: none;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-right: 8px;
  border-radius: 8px;
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
}

.psg-shell .psg-topbar .bars::before,
.psg-shell .psg-topbar .bars::after {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  margin: 0;
  line-height: 48px;
  text-align: center;
}

.psg-shell .psg-topbar-brand,
.psg-shell .psg-topbar-brand:hover,
.psg-shell .psg-topbar-brand:focus {
  display: flex;
  align-items: center;
  height: 64px;
  margin: 0 !important;
  padding: 0;
  color: #ffffff;
  text-decoration: none;
}

.psg-shell .psg-topbar-brand img {
  width: auto;
  height: 32px;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  filter: brightness(0) invert(1);
}

.psg-shell .psg-topbar-brand span {
  font-size: 17px;
  font-weight: 600;
}

.psg-topbar-actions,
.psg-user-summary,
.psg-topbar-logout {
  display: flex;
  align-items: center;
}

.psg-topbar-actions {
  gap: 10px;
}

.psg-user-summary {
  gap: 10px;
  min-height: 42px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.psg-user-summary > .material-icons {
  font-size: 22px;
}

.psg-user-summary span,
.psg-user-summary strong,
.psg-user-summary small {
  display: block;
}

.psg-user-summary strong {
  max-width: 240px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psg-user-summary small {
  max-width: 240px;
  margin-top: 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psg-topbar-logout {
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 180ms ease, background-color 180ms ease;
}

.psg-topbar-logout:hover,
.psg-topbar-logout:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.psg-shell .sidebar {
  display: flex;
  flex-direction: column;
  top: 64px;
  width: 264px;
  height: calc(100vh - 64px) !important;
  overflow: hidden;
  border-right: 1px solid var(--psg-border);
  background: #ffffff !important;
  box-shadow: none;
  font-family: var(--psg-font);
}

.psg-shell.overlay-open {
  overflow: hidden !important;
}

.psg-shell .sidebar .psg-sidebar-brand {
  display: block;
  height: auto;
  min-height: 88px;
  padding: 24px 20px 18px;
  border-bottom: 1px solid var(--psg-border);
  background: #ffffff;
  white-space: normal;
}

.psg-sidebar-brand strong,
.psg-sidebar-kicker {
  display: block;
}

.psg-sidebar-brand strong {
  color: var(--psg-blue-950);
  font-size: 16px;
  font-weight: 600;
}

.psg-sidebar-kicker {
  margin-bottom: 5px;
  color: var(--psg-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.psg-shell .sidebar .menu {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  overflow-y: auto;
  padding: 16px 12px 20px;
}

.psg-shell .sidebar .menu > .slimScrollDiv {
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
}

.psg-shell .sidebar .menu > .slimScrollDiv > .psg-nav-list {
  height: auto !important;
}

.psg-shell .sidebar .menu > .slimScrollDiv > .slimScrollBar,
.psg-shell .sidebar .menu > .slimScrollDiv > .slimScrollRail {
  display: none !important;
}

.psg-shell .sidebar .menu .psg-nav-list {
  margin: 0;
}

.psg-shell .sidebar .menu .psg-nav-list .header {
  margin: 0 0 8px;
  padding: 8px 12px;
  color: var(--psg-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.psg-shell .sidebar .menu .psg-nav-list > li {
  margin-bottom: 4px;
}

.psg-shell .sidebar .menu .psg-nav-list a {
  position: relative;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--psg-ink);
  transition: color 180ms ease, background-color 180ms ease;
}

.psg-shell .sidebar .menu .psg-nav-list a:hover,
.psg-shell .sidebar .menu .psg-nav-list a:focus {
  color: var(--psg-blue-900);
  background: var(--psg-blue-50);
  outline: none;
}

.psg-shell .sidebar .menu .psg-nav-list a:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 109, 168, 0.2);
}

.psg-shell .sidebar .menu .psg-nav-list a .material-icons {
  flex: 0 0 24px;
  margin: 0;
  color: var(--psg-blue-700);
  font-size: 22px;
}

.psg-shell .sidebar .menu .psg-nav-list a span,
.psg-shell .sidebar .menu .psg-nav-list .ml-menu span {
  margin: 0 28px 0 12px;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.psg-shell .sidebar .menu .psg-nav-list li.active > a {
  color: var(--psg-blue-950);
  background: var(--psg-blue-50);
  box-shadow: none;
}

.psg-shell .sidebar .menu .psg-nav-list > li.active > a {
  background: linear-gradient(to left, var(--psg-blue-700) 0 3px, var(--psg-blue-50) 3px 100%);
}

.psg-shell .sidebar .menu .psg-nav-list .ml-menu {
  margin: 4px 0 8px 20px;
  padding-left: 8px;
  border-left: 1px solid var(--psg-border);
}

.psg-shell .sidebar .menu .psg-nav-list .ml-menu li a {
  min-height: 42px;
  padding: 8px 12px;
}

.psg-shell .sidebar .menu .psg-nav-list .ml-menu li a span {
  margin: 0;
}

.psg-shell .sidebar .menu .psg-nav-list .ml-menu li a::before {
  display: none !important;
  content: none !important;
}

.psg-shell .sidebar .menu .psg-nav-list .psg-nav-logout {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--psg-border);
}

.psg-shell .sidebar .menu .psg-nav-list .psg-nav-logout a,
.psg-shell .sidebar .menu .psg-nav-list .psg-nav-logout a .material-icons {
  color: var(--psg-danger);
}

.psg-shell .sidebar .psg-sidebar-footer {
  flex: 0 0 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 54px;
  padding: 8px 20px;
  border-top: 1px solid var(--psg-border);
  color: var(--psg-muted);
  background: #ffffff;
}

.psg-sidebar-footer span {
  color: var(--psg-blue-900);
  font-size: 12px;
  font-weight: 700;
}

.psg-sidebar-footer small {
  font-size: 11px;
}

.psg-shell section.content {
  margin: 64px 0 0 264px;
  padding: 30px;
}

@media (max-width: 991px) {
  .psg-shell .psg-topbar .navbar-header {
    flex: 1 1 auto;
    width: auto;
  }

  .psg-shell .psg-topbar .bars {
    display: block;
  }

  .psg-shell .sidebar {
    margin-left: -300px;
  }

  .psg-shell section.content {
    margin-left: 0;
  }

  .psg-shell.overlay-open .sidebar {
    margin-left: 0;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .psg-shell .psg-topbar .navbar-header {
    flex: 1 1 auto;
    width: auto;
  }

  .psg-shell .psg-topbar .bars {
    display: block;
  }

  .psg-shell .sidebar {
    width: 68px;
  }

  .psg-shell section.content {
    margin-left: 68px;
  }

  .psg-sidebar-brand {
    padding: 24px 10px 18px;
  }

  .psg-sidebar-brand .psg-sidebar-kicker,
  .psg-sidebar-brand strong,
  .psg-nav-list a span,
  .psg-sidebar-footer span,
  .psg-sidebar-footer small {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .psg-nav-list .header {
    display: none;
  }

  .psg-nav-list a {
    justify-content: center;
    padding: 10px 0;
  }

  .psg-nav-list .ml-menu {
    display: none !important;
  }

  .sidebar .menu {
    padding: 16px 8px 20px;
  }

  .psg-sidebar-footer {
    padding: 8px 10px;
  }

  .psg-shell.psg-sidebar-expanded .sidebar {
    width: 264px;
  }

  .psg-shell.psg-sidebar-expanded section.content {
    margin-left: 264px;
  }

  .psg-shell.psg-sidebar-expanded .psg-sidebar-brand {
    padding: 24px 20px 18px;
  }

  .psg-shell.psg-sidebar-expanded .psg-sidebar-brand .psg-sidebar-kicker,
  .psg-shell.psg-sidebar-expanded .psg-sidebar-brand strong,
  .psg-shell.psg-sidebar-expanded .psg-nav-list a span,
  .psg-shell.psg-sidebar-expanded .psg-sidebar-footer span,
  .psg-shell.psg-sidebar-expanded .psg-sidebar-footer small {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .psg-shell.psg-sidebar-expanded .psg-nav-list .header {
    display: block;
  }

  .psg-shell.psg-sidebar-expanded .psg-nav-list a {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .psg-shell.psg-sidebar-expanded .sidebar .menu {
    padding: 16px 12px 20px;
  }

  .psg-shell.psg-sidebar-expanded .psg-sidebar-footer {
    padding: 8px 10px;
  }

}

@media (max-width: 600px) {
  .psg-shell .psg-topbar .container-fluid {
    padding-right: 14px;
    padding-left: 10px;
  }

  .psg-shell .psg-topbar-brand img {
    display: none;
  }

  .psg-shell .psg-topbar-brand {
    min-width: 0;
    margin-right: 10px !important;
  }

  .psg-shell .psg-topbar-brand span {
    min-width: 0;
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .psg-user-summary {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .psg-user-summary span {
    display: none;
  }

  .psg-shell section.content {
    padding: 18px 12px 30px;
  }
}

/* Area do candidato */
.psg-candidate-home,
.psg-candidate-list {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.psg-candidate-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  border-radius: var(--psg-radius-lg);
  color: #ffffff;
  background: linear-gradient(130deg, var(--psg-blue-950), var(--psg-blue-900));
  box-shadow: 0 18px 40px rgba(3, 47, 79, 0.16);
}

.psg-candidate-hero::after,
.psg-ranking-hero::after {
  position: absolute;
  top: 50%;
  right: -32px;
  width: 250px;
  height: 205px;
  background: url("../images/simbolo-senac.png") center / contain no-repeat;
  content: "";
  filter: brightness(0) invert(1);
  opacity: 0.14;
  pointer-events: none;
  transform: translateY(-50%);
}

.psg-candidate-hero > *,
.psg-ranking-hero > * {
  position: relative;
  z-index: 1;
}

.psg-candidate-hero h1,
.psg-candidate-page-header h1 {
  margin: 0 0 12px;
  font-family: var(--psg-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
}

.psg-candidate-hero h1 {
  color: #ffffff;
}

.psg-candidate-hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.6;
}

.psg-candidate-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.psg-candidate-action-card,
.psg-candidate-action-card:hover,
.psg-candidate-action-card:focus {
  color: var(--psg-ink);
  text-decoration: none;
}

.psg-candidate-action-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 24px;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-md);
  background: var(--psg-surface);
  box-shadow: 0 10px 28px rgba(3, 47, 79, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.psg-candidate-action-card:hover,
.psg-candidate-action-card:focus-visible {
  border-color: var(--psg-blue-700);
  box-shadow: 0 16px 34px rgba(3, 47, 79, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.psg-candidate-action-card > .material-icons:first-child {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: var(--psg-blue-900);
  background: var(--psg-blue-100);
  place-items: center;
}

.psg-candidate-action-card span,
.psg-candidate-action-card strong,
.psg-candidate-action-card small {
  display: block;
}

.psg-candidate-action-card strong {
  margin-bottom: 4px;
  color: var(--psg-blue-950);
  font-size: 18px;
}

.psg-candidate-action-card small {
  color: var(--psg-muted);
  font-size: 14px;
  line-height: 1.4;
}

.psg-candidate-action-arrow {
  color: var(--psg-orange-dark);
}

/* ---- status label ---- */
.psg-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  border-radius: 999px;
  background: var(--psg-blue-100);
  color: var(--psg-blue-900);
}

.psg-label--success {
  background: #dcf5e8;
  color: #0f5132;
}

.psg-label--warning {
  background: #fff3cd;
  color: #856404;
}

.psg-candidate-page-header {
  margin-bottom: 22px;
  padding: 8px 4px;
}

.psg-candidate-page-header h1 {
  color: var(--psg-blue-950);
}

.psg-candidate-page-header p {
  max-width: 720px;
  margin: 0;
  color: var(--psg-muted);
  font-size: 16px;
  line-height: 1.55;
}

.psg-candidate-table-card {
  overflow: hidden;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-md);
  background: var(--psg-surface);
  box-shadow: 0 12px 32px rgba(3, 47, 79, 0.07);
}

.psg-candidate-table-card .psg-candidate-page-header {
  padding: 22px 26px 4px;
}

.psg-candidate-list .psg-candidate-table-card + .psg-candidate-table-card {
  margin-top: 20px;
}

.psg-candidate-list > .psg-candidate-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 250px;
  padding: 52px 28px;
  color: var(--psg-muted);
  text-align: center;
}

.psg-candidate-list > .psg-candidate-empty-state .material-icons {
  color: var(--psg-blue-700);
  font-size: 42px;
}

.psg-candidate-list > .psg-candidate-empty-state strong {
  color: var(--psg-blue-950);
  font-size: 18px;
}

.psg-candidate-list > .psg-candidate-empty-state p {
  max-width: 520px;
  margin: 0;
  line-height: 1.55;
}

.psg-course-search {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 8px 20px;
  align-items: end;
  padding: 22px 24px;
  border-bottom: 1px solid var(--psg-border);
  background: #ffffff;
}

.psg-course-search label {
  grid-column: 1;
  color: var(--psg-blue-950);
  font-size: 14px;
  font-weight: 700;
}

.psg-course-search-field {
  position: relative;
  grid-column: 1;
}

.psg-course-search-field .material-icons {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--psg-blue-700);
  font-size: 21px;
  transform: translateY(-50%);
  pointer-events: none;
}

.psg-course-search-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 42px;
  border: 1px solid var(--psg-border);
  border-radius: 10px;
  color: var(--psg-ink);
  background: #ffffff;
  font: inherit;
}

.psg-course-search-field input:focus {
  border-color: var(--psg-blue-700);
  outline: 3px solid rgba(0, 109, 168, 0.16);
  outline-offset: 1px;
}

.psg-course-search-status {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  color: var(--psg-muted);
  font-size: 14px;
}

.psg-course-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 44px 24px;
  color: var(--psg-muted);
  text-align: center;
}

.psg-course-empty[hidden],
.psg-candidate-table tr[hidden],
.psg-ranking-table tr[hidden] {
  display: none !important;
}

.psg-course-empty .material-icons {
  margin-bottom: 5px;
  color: var(--psg-blue-700);
  font-size: 34px;
}

.psg-course-empty strong {
  color: var(--psg-blue-950);
  font-size: 17px;
}

.psg-candidate-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.psg-candidate-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--psg-ink);
}

.psg-candidate-table th,
.psg-candidate-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--psg-border);
  text-align: left;
  vertical-align: middle;
}

.psg-candidate-table th {
  color: var(--psg-blue-950);
  background: var(--psg-blue-50);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.psg-candidate-table tbody tr:last-child td {
  border-bottom: 0;
}

.psg-candidate-table tbody tr:hover {
  background: #f8fbfc;
}

.psg-candidate-table .psg-schedule-cell {
  max-width: 28rem;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.psg-candidate-document-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.psg-candidate-document-list li {
  margin: 0;
  padding: 0;
}

.psg-candidate-document-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--nsi-borda);
  border-radius: var(--psg-radius-sm);
  color: var(--nsi-azul-800);
  background: var(--nsi-superficie);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.psg-candidate-document-list a:hover,
.psg-candidate-document-list a:focus-visible {
  border-color: var(--nsi-azul);
  background: var(--nsi-azul-suave);
  box-shadow: 0 0 0 3px var(--nsi-azul-suave);
  outline: none;
}

.psg-candidate-table-card > .psg-candidate-table-wrap h3 {
  margin: 24px 0 0;
  padding: 0 26px;
}

.psg-candidate-document-list a > i {
  flex: 0 0 auto;
  color: var(--nsi-azul);
  font-size: 22px;
  line-height: 1;
}

.psg-candidate-document-list a strong {
  font-weight: 700;
}

.psg-documento-texto {
  flex: 1 1 auto;
  min-width: 0;
}

.psg-documento-data {
  flex: 0 0 auto;
  color: var(--nsi-texto-suave);
  font-weight: 400;
  white-space: nowrap;
}

/* Rótulo de seção dentro do painel: pequeno e discreto, não título de página. */
.nsi-painel-corpo > h3.psg-rotulo-secao {
  margin: 0 0 1rem;
  padding: 0;
  color: var(--nsi-texto-suave);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .psg-candidate-document-list a {
    align-items: flex-start;
  }
}

.psg-candidate-enroll,
.psg-candidate-enroll:hover,
.psg-candidate-enroll:focus {
  color: #ffffff;
  text-decoration: none;
}

.psg-candidate-enroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--psg-blue-900);
  font-weight: 700;
  white-space: nowrap;
}

.psg-candidate-enroll:hover {
  background: var(--psg-blue-950);
}

.psg-candidate-enroll:focus-visible {
  outline: 3px solid rgba(247, 148, 29, 0.45);
  outline-offset: 2px;
}

/* Confirmacao de inscricao candidata */
.psg-enrollment {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.psg-enrollment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.psg-enrollment-logo {
  width: 132px;
  height: auto;
}

.psg-enrollment-terms,
.psg-enrollment-summary {
  margin-bottom: 24px;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-md);
  background: var(--psg-surface);
  box-shadow: 0 12px 32px rgba(3, 47, 79, 0.07);
  overflow: hidden;
}

.psg-enrollment-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--psg-border);
  background: var(--psg-blue-50);
}

.psg-enrollment-section-heading .material-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--psg-blue-900);
}

.psg-enrollment-section-heading h2,
.psg-enrollment-term h3 {
  margin: 0;
  color: var(--psg-blue-950);
}

.psg-enrollment-section-heading h2 {
  font-family: var(--psg-display);
  font-size: 22px;
}

.psg-enrollment-section-heading p {
  margin: 4px 0 0;
  color: var(--psg-muted);
  font-size: 14px;
}

.psg-enrollment-term {
  margin: 0 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--psg-border);
}

.psg-enrollment-term h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.psg-enrollment-term p {
  max-width: 88ch;
  margin: 0 0 12px;
  color: var(--psg-ink);
  font-size: 16px;
  line-height: 1.7;
}

.psg-enrollment-term p:last-child {
  margin-bottom: 0;
}

.psg-enrollment-consent {
  margin: 24px 26px 0;
  padding: 18px 20px;
  border: 1px solid rgba(0, 109, 168, 0.24);
  border-radius: 12px;
  background: #f3f9fc;
}

.psg-enrollment-consent label {
  margin-left: 8px;
  color: var(--psg-blue-950);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.psg-enrollment-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  vertical-align: middle;
  accent-color: var(--psg-blue-900);
}

.psg-enrollment-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 26px;
}

.psg-enrollment-submit p {
  margin: 0;
  color: var(--psg-muted);
  font-size: 14px;
}

.psg-enrollment-button {
  min-width: 220px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: var(--psg-orange-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.psg-enrollment-button:hover,
.psg-enrollment-button:focus {
  color: #ffffff;
  background: #c96300;
}

.psg-enrollment-button:focus-visible {
  outline: 3px solid rgba(247, 148, 29, 0.42);
  outline-offset: 2px;
}

.psg-enrollment-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

@media (max-width: 980px) {
  .psg-candidate-actions {
    grid-template-columns: 1fr;
  }

  .psg-candidate-action-card {
    min-height: 104px;
  }
}

@media (max-width: 767px) {
  .psg-candidate-hero {
    padding: 28px 24px;
  }

  .psg-candidate-table-wrap {
    overflow: visible;
  }

  .psg-course-search {
    display: block;
    padding: 18px 16px;
  }

  .psg-course-search label {
    display: block;
    margin-bottom: 8px;
  }

  .psg-course-search-status {
    margin-top: 9px;
  }

  .psg-candidate-table,
  .psg-candidate-table tbody,
  .psg-candidate-table tr,
  .psg-candidate-table td {
    display: block;
    width: 100%;
  }

  .psg-candidate-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .psg-candidate-table tbody {
    padding: 12px;
  }

  .psg-candidate-table tr {
    margin-bottom: 12px;
    padding: 8px 14px;
    border: 1px solid var(--psg-border);
    border-radius: 14px;
    background: #ffffff;
  }

  .psg-candidate-table tr:last-child {
    margin-bottom: 0;
  }

  .psg-candidate-table td,
  .psg-candidate-table tbody tr:last-child td {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 0.58fr);
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--psg-border);
    text-align: right;
    overflow-wrap: anywhere;
  }

  .psg-candidate-table td:last-child,
  .psg-candidate-table tbody tr:last-child td:last-child {
    border-bottom: 0;
  }

  .psg-candidate-table td::before {
    color: var(--psg-muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }

  .psg-candidate-table .psg-schedule-cell {
    min-width: 0;
    max-width: none;
  }

  .psg-candidate-enroll {
    width: 100%;
  }

  .psg-enrollment-header {
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 4px 0;
  }

  .psg-enrollment-header h1 {
    margin-bottom: 6px;
    font-size: 28px;
  }

  .psg-enrollment-header p {
    font-size: 15px;
    line-height: 1.45;
  }

  .psg-enrollment-logo {
    width: 92px;
  }

  .psg-enrollment-section-heading {
    gap: 10px;
    padding: 16px;
  }

  .psg-enrollment-section-heading .material-icons {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .psg-enrollment-section-heading h2 {
    font-size: 20px;
  }

  .psg-enrollment-term {
    margin: 0 16px;
    padding: 17px 0;
  }

  .psg-enrollment-term h3 {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .psg-enrollment-term p {
    margin-bottom: 9px;
    font-size: 15px;
    line-height: 1.58;
  }

  .psg-enrollment-consent {
    margin: 16px;
    padding: 14px 15px;
  }

  .psg-enrollment-consent label {
    font-size: 15px;
    line-height: 1.45;
  }

  .psg-enrollment-submit {
    display: block;
    padding: 2px 16px 18px;
  }

  .psg-enrollment-submit p {
    margin-bottom: 14px;
  }

  .psg-enrollment-button {
    width: 100%;
    min-width: 0;
  }

  .psg-candidate-list .psg-candidate-page-header {
    margin-bottom: 14px;
    padding: 4px 0;
  }

  .psg-candidate-list .psg-candidate-page-header h1 {
    margin-bottom: 6px;
    font-size: 28px;
  }

  .psg-candidate-list .psg-candidate-page-header p {
    font-size: 15px;
    line-height: 1.45;
  }

  .psg-candidate-list .psg-candidate-table-card {
    border-radius: 12px;
  }

  .psg-candidate-list .psg-candidate-table tbody {
    padding: 8px;
  }

  .psg-candidate-list .psg-candidate-table tr {
    margin-bottom: 8px;
    padding: 5px 12px;
    border-radius: 11px;
  }

  .psg-candidate-list .psg-candidate-table td,
  .psg-candidate-list .psg-candidate-table tbody tr:last-child td {
    grid-template-columns: minmax(82px, 0.38fr) minmax(0, 0.62fr);
    gap: 10px;
    padding: 9px 0;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .psg-candidate-action-card {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 20px;
  }

  .psg-candidate-action-arrow {
    display: none;
  }

  .psg-enrollment-logo {
    display: none;
  }
}

/* Ranking administrativo */
.psg-ranking {
  width: min(100%, 1540px);
  margin: 0 auto;
}

.psg-ranking-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--psg-radius-lg);
  color: #ffffff;
  background: linear-gradient(130deg, var(--psg-blue-950), var(--psg-blue-900));
  box-shadow: 0 18px 40px rgba(3, 47, 79, 0.16);
  overflow: hidden;
}

.psg-ranking-hero h1,
.psg-ranking-list-header h2,
.psg-ranking-section-heading h2 {
  margin: 0;
  color: inherit;
  font-family: var(--psg-display);
  font-weight: 700;
}

.psg-ranking-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.psg-ranking-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.55;
}

.psg-ranking-filter,
.psg-ranking-list {
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-md);
  background: var(--psg-surface);
  box-shadow: 0 12px 32px rgba(3, 47, 79, 0.07);
}

.psg-ranking-filter {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 24px;
  padding: 24px 28px;
}

.psg-ranking-section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.psg-ranking-section-heading > .material-icons {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--psg-blue-900);
  background: var(--psg-blue-100);
  place-items: center;
}

.psg-ranking-section-heading h2 {
  margin-bottom: 4px;
  color: var(--psg-blue-950);
  font-size: 22px;
}

.psg-ranking-section-heading p,
.psg-ranking-list-header p {
  margin: 0;
  color: var(--psg-muted);
  line-height: 1.5;
}

.psg-ranking-select label,
.psg-ranking-reason-label {
  display: block;
  margin-bottom: 7px;
  color: var(--psg-ink);
  font-size: 14px;
  font-weight: 700;
}

.psg-ranking-select .form-control,
.psg-ranking-reason.form-control {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-sm);
  color: var(--psg-ink);
  background: #ffffff;
  box-shadow: none;
  font-family: var(--psg-font);
  font-size: 15px;
}

.psg-ranking-select .form-control:focus,
.psg-ranking-reason.form-control:focus {
  border-color: var(--psg-blue-700);
  box-shadow: 0 0 0 4px rgba(0, 109, 168, 0.14);
}

.psg-shell .select2-container {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  font-family: var(--psg-font);
}

.psg-shell .psg-search-select-label {
  display: block;
  margin-bottom: 8px;
  color: var(--psg-ink);
  font-weight: 700;
}

.psg-shell .select2-container .select2-selection--single {
  height: 48px;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-sm);
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.psg-shell .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 44px 0 14px;
  color: var(--psg-ink);
  line-height: 46px;
}

.psg-shell .select2-container .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 10px;
  width: 28px;
  height: 46px;
}

.psg-shell .select2-container--open .select2-selection--single,
.psg-shell .select2-container--focus .select2-selection--single {
  border-color: var(--psg-blue-700);
  box-shadow: 0 0 0 4px rgba(0, 109, 168, 0.14);
}

.select2-container--open {
  z-index: 1100;
}

.select2-dropdown {
  border-color: var(--psg-border);
  border-radius: var(--psg-radius-sm);
  font-family: var(--psg-font);
  box-shadow: 0 14px 32px rgba(3, 47, 79, 0.14);
}

.select2-search--dropdown {
  padding: 10px;
}

.select2-search--dropdown .select2-search__field {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--psg-border) !important;
  border-radius: 7px;
  outline: 0;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--psg-blue-700) !important;
  box-shadow: 0 0 0 3px rgba(0, 109, 168, 0.12);
}

.select2-results__option {
  min-height: 40px;
  padding: 10px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  color: #ffffff;
  background: var(--psg-blue-700);
}

.psg-ranking-list {
  overflow: hidden;
}

.psg-ranking-list .psg-ranking-select {
  padding: 24px 28px 0;
}

.psg-ranking-list .psg-ranking-select .form-control {
  width: 320px;
  max-width: 100%;
}

.psg-ranking-list .psg-ranking-select .select2-container {
  width: 320px !important;
  max-width: 100%;
}

.psg-ranking-filter-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--psg-muted);
  font-size: 14px;
  font-weight: 600;
}

.psg-ranking-filter-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 38px 20px;
  color: var(--psg-muted);
  text-align: center;
}

.psg-ranking-filter-empty[hidden] {
  display: none;
}

.psg-ranking-filter-empty .material-icons {
  color: var(--psg-blue-700);
  font-size: 34px;
}

.psg-ranking-filter-empty strong {
  color: var(--psg-blue-950);
  font-size: 17px;
}

.psg-ranking-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--psg-border);
}

.psg-ranking-list-header h2 {
  margin-bottom: 5px;
  color: var(--psg-blue-950);
  font-size: 26px;
}

.psg-ranking-guidance {
  display: inline-flex;
  align-items: center;
  max-width: 390px;
  padding: 10px 14px;
  border-radius: var(--psg-radius-sm);
  color: var(--psg-blue-950);
  background: var(--psg-blue-50);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.psg-ranking-guidance .material-icons {
  margin-right: 8px;
  color: var(--psg-blue-700);
  font-size: 20px;
}

.psg-ranking-table-wrap {
  width: 100%;
  padding: 24px 28px 28px;
}

.psg-ranking-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
}

.psg-ranking-table th {
  padding: 14px 16px;
  border-bottom: 2px solid var(--psg-blue-100);
  color: var(--psg-blue-950);
  background: #f8fbfc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.psg-ranking-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--psg-border);
  color: var(--psg-ink);
  vertical-align: middle;
}

.psg-ranking-table tbody tr:last-child td {
  border-bottom: 0;
}

.psg-ranking-table tbody tr:hover {
  background: rgba(239, 247, 251, 0.6);
}

.psg-ranking-position {
  display: inline-grid;
  min-width: 46px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 12px;
  color: var(--psg-blue-950);
  background: var(--psg-blue-100);
  font-family: var(--psg-display);
  font-size: 17px;
  font-weight: 700;
  place-items: center;
}

.psg-ranking-name {
  display: block;
  min-width: 170px;
  max-width: 280px;
  line-height: 1.4;
}

.psg-grs-viewing-presence.psg-ranking-viewing-presence {
  display: flex;
  width: fit-content;
  margin: 8px 0 0;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
}

.psg-ranking-cpf,
.psg-ranking-capacity {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.psg-ranking-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--psg-border);
  border-radius: 999px;
  color: var(--psg-ink);
  background: #f6f8f9;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.psg-ranking-status[data-status="Classificado"],
.psg-ranking-status[data-status="Aprovado"] {
  border-color: #a9dec4;
  color: #0b6139;
  background: #e8f7ef;
}

.psg-ranking-status[data-status="Suplente"] {
  border-color: #f0cf8e;
  color: #805000;
  background: #fff5da;
}

.psg-ranking-status[data-status="Reprovado"] {
  border-color: #efb4ad;
  color: #922018;
  background: #fff0ee;
}

.psg-ranking-actions-cell {
  width: 36%;
  min-width: 340px;
}

.psg-ranking-actions {
  min-width: 310px;
}

.psg-ranking-reason.form-control {
  height: 42px;
  margin-bottom: 10px;
}

.psg-ranking-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psg-ranking-button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 8px 13px;
  border-radius: 8px;
  font-family: var(--psg-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.psg-ranking-button:focus-visible {
  outline: 3px solid rgba(0, 109, 168, 0.25);
  outline-offset: 2px;
}

@media (max-width: 1400px) {
  .psg-ranking-table th,
  .psg-ranking-table td {
    padding-right: 12px;
    padding-left: 12px;
  }

  .psg-ranking-actions-cell {
    width: 32%;
    min-width: 310px;
  }
}

@media (max-width: 900px) {
  .psg-ranking-filter {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 20px;
  }

  .psg-ranking-filter > *,
  .psg-ranking-section-heading > div,
  .psg-ranking-select {
    width: 100%;
    min-width: 0;
  }

  .psg-ranking-select .bootstrap-select {
    width: 100% !important;
    min-width: 0;
  }

  .psg-ranking-list-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .psg-ranking-guidance {
    max-width: none;
  }

  .psg-ranking-table-wrap {
    padding: 16px;
  }

  .psg-ranking-list .psg-ranking-select .form-control {
    width: 100%;
  }

  .psg-ranking-list .psg-ranking-select .select2-container {
    width: 100% !important;
  }

  .psg-ranking-table,
  .psg-ranking-table tbody,
  .psg-ranking-table tr,
  .psg-ranking-table td {
    display: block;
    width: 100%;
  }

  .psg-ranking-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .psg-ranking-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--psg-border);
    border-radius: var(--psg-radius-sm);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(3, 47, 79, 0.06);
  }

  .psg-ranking-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .psg-ranking-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 11px 0;
    border-bottom: 1px solid #e9f0f3;
    text-align: right;
  }

  .psg-ranking-table td::before {
    flex: 0 0 auto;
    color: var(--psg-muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
  }

  .psg-ranking-table .psg-ranking-actions-cell {
    display: block;
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 16px;
    border-bottom: 0;
    text-align: left;
  }

  .psg-ranking-table .psg-ranking-actions-cell::before {
    display: block;
    margin-bottom: 12px;
  }

  .psg-ranking-actions,
  .psg-ranking-name {
    min-width: 0;
    max-width: none;
  }

  .psg-ranking-name {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 600px) {
  .psg-ranking-hero {
    padding: 25px 22px;
    border-radius: var(--psg-radius-md);
  }

  .psg-ranking-filter,
  .psg-ranking-list-header {
    padding: 22px 18px;
  }

  .psg-ranking-section-heading {
    align-items: flex-start;
  }

  .psg-ranking-table-wrap {
    padding: 10px;
  }

  .psg-ranking-table tbody tr {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .psg-ranking-table .psg-ranking-actions-cell {
    grid-column: auto;
  }

  .psg-ranking-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .psg-ranking-button.btn {
    min-height: 44px;
  }
}

/* Formularios e relatorios administrativos */
.psg-grs-page {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.psg-grs-page > .row {
  margin-right: 0;
  margin-left: 0;
}

.psg-grs-page > .row > [class*="col-"] {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
}

.psg-grs-page-header {
  margin-bottom: 24px;
  padding: 4px 4px 0;
}

.psg-grs-page-header h1 {
  margin: 0 0 8px;
  color: var(--psg-blue-950);
  font-family: var(--psg-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
}

.psg-grs-page-header p,
.psg-grs-card-header p {
  margin: 0;
  color: var(--psg-muted);
  font-size: 15px;
  line-height: 1.5;
}

.psg-shell .psg-grs-card.card {
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-md);
  background: var(--psg-surface);
  box-shadow: 0 12px 32px rgba(3, 47, 79, 0.07);
}

.psg-shell .psg-grs-card-header.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--psg-border);
  background: var(--psg-blue-50);
}

.psg-shell .psg-grs-card-header.header h2 {
  margin: 0 0 4px;
  color: var(--psg-blue-950);
  font-family: var(--psg-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.psg-grs-card-header > .material-icons {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--psg-blue-900);
  background: var(--psg-blue-100);
  place-items: center;
}

.psg-shell .psg-grs-card-body.body {
  padding: 26px;
}

.psg-grs-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 22px;
  align-items: end;
}

.psg-grs-form-grid-dates {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(170px, 0.8fr);
}

.psg-grs-field {
  min-width: 0;
}

.psg-grs-field-wide {
  grid-column: span 2;
}

.psg-candidate-enrolled {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 122, 74, 0.24);
  border-radius: 10px;
  background: rgba(19, 122, 74, 0.08);
  color: var(--psg-success, #137a4a);
  font-weight: 700;
  white-space: nowrap;
}

.psg-grs-observation-field {
  grid-column: 1 / -1;
}

.psg-grs-field-help {
  color: var(--psg-gray-600);
  font-size: 12px;
  line-height: 1.45;
  margin: 7px 0 0;
}

.psg-optional-label {
  color: var(--psg-gray-600);
  font-weight: 400;
}

.psg-grs-field-grow {
  grid-column: span 3;
}

.psg-grs-field label,
.psg-grs-bootstrap-form-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--psg-ink);
  font-size: 14px;
  font-weight: 700;
}

.psg-grs-field .form-line,
.psg-grs-bootstrap-form-row .form-line {
  border-bottom: 0;
}

.psg-grs-field .form-control,
.psg-grs-bootstrap-form-row .form-control {
  width: 100%;
  height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-sm);
  color: var(--psg-ink);
  background: #ffffff;
  box-shadow: none;
  font-family: var(--psg-font);
  font-size: 15px;
}

.psg-grs-field .form-control:focus,
.psg-grs-bootstrap-form-row .form-control:focus {
  border-color: var(--psg-blue-700);
  box-shadow: 0 0 0 4px rgba(0, 109, 168, 0.14);
}

.psg-grs-form-action {
  min-width: 0;
}

.psg-shell .psg-grs-primary-button.btn {
  min-height: 48px;
  margin: 0;
  padding: 11px 18px;
  border: 0;
  border-radius: var(--psg-radius-sm);
  color: #ffffff;
  background: var(--psg-orange-dark);
  box-shadow: 0 8px 20px rgba(201, 108, 0, 0.18);
  font-family: var(--psg-font);
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
}

.psg-shell .psg-grs-primary-button.btn:hover,
.psg-shell .psg-grs-primary-button.btn:focus {
  color: #ffffff;
  background: #a85b00;
}

.psg-shell .psg-grs-primary-button.btn:focus-visible {
  outline: 3px solid rgba(247, 148, 29, 0.35);
  outline-offset: 2px;
}

/* Controles operacionais compartilhados */
.psg-shell .psg-button,
.psg-shell .psg-button.btn {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px 15px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--psg-radius-sm);
  box-shadow: none;
  font-family: var(--psg-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.psg-shell .psg-button .material-icons {
  font-size: 19px;
}

.psg-shell .psg-button-primary,
.psg-shell .psg-button-primary.btn {
  color: #ffffff;
  background: var(--psg-blue-900);
}

.psg-shell .psg-button-primary:hover,
.psg-shell .psg-button-primary:focus,
.psg-shell .psg-button-primary.btn:hover,
.psg-shell .psg-button-primary.btn:focus {
  color: #ffffff;
  background: var(--psg-blue-950);
}

.psg-shell .psg-button-secondary,
.psg-shell .psg-button-secondary.btn {
  border-color: var(--psg-blue-700);
  color: var(--psg-blue-900);
  background: var(--psg-surface);
}

.psg-shell .psg-button-secondary:hover,
.psg-shell .psg-button-secondary:focus,
.psg-shell .psg-button-secondary.btn:hover,
.psg-shell .psg-button-secondary.btn:focus {
  border-color: var(--psg-blue-900);
  color: var(--psg-blue-950);
  background: var(--psg-blue-50);
}

.psg-shell .psg-button-success,
.psg-shell .psg-button-success.btn {
  color: #ffffff;
  background: var(--psg-success);
}

.psg-shell .psg-button-success:hover,
.psg-shell .psg-button-success:focus,
.psg-shell .psg-button-success.btn:hover,
.psg-shell .psg-button-success.btn:focus {
  color: #ffffff;
  background: #0d633b;
}

.psg-shell .psg-button-danger,
.psg-shell .psg-button-danger.btn {
  color: #ffffff;
  background: var(--psg-danger);
}

.psg-shell .psg-button-danger:hover,
.psg-shell .psg-button-danger:focus,
.psg-shell .psg-button-danger.btn:hover,
.psg-shell .psg-button-danger.btn:focus {
  color: #ffffff;
  background: #8f1d15;
}

.psg-shell .psg-button-danger-outline,
.psg-shell .psg-button-danger-outline.btn {
  border-color: var(--psg-danger);
  color: var(--psg-danger);
  background: var(--psg-surface);
}

.psg-shell .psg-button-danger-outline:hover,
.psg-shell .psg-button-danger-outline:focus,
.psg-shell .psg-button-danger-outline.btn:hover,
.psg-shell .psg-button-danger-outline.btn:focus {
  color: #ffffff;
  background: var(--psg-danger);
}

.psg-shell .psg-button:focus-visible,
.psg-shell .psg-button.btn:focus-visible {
  outline: 3px solid rgba(0, 109, 168, 0.3);
  outline-offset: 2px;
}

.psg-shell .psg-button:disabled,
.psg-shell .psg-button.btn:disabled,
.psg-shell .psg-button.disabled,
.psg-shell .psg-button.btn.disabled {
  border-color: var(--psg-border);
  color: var(--psg-muted);
  background: #edf2f5;
  cursor: not-allowed;
  opacity: 1;
}

.psg-form-error-summary {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #efb4ad;
  border-radius: var(--psg-radius-sm);
  color: #7f1d16;
  background: #fff0ee;
}

.psg-form-error-summary strong,
.psg-form-error-summary span {
  display: block;
}

.psg-field-error {
  display: block;
  margin-top: 6px;
  color: #8f1d15;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.psg-shell [aria-invalid="true"] {
  border-color: var(--psg-danger) !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important;
}

.psg-modal .modal-dialog {
  width: min(760px, calc(100% - 28px));
  margin: 30px auto;
}

.psg-modal .modal-content {
  overflow: hidden;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-md);
  box-shadow: 0 24px 70px rgba(3, 47, 79, 0.3);
}

.psg-modal .modal-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--psg-border);
  background: var(--psg-blue-50);
}

.psg-modal-danger .modal-header {
  background: #fff0ee;
}

.psg-modal .modal-title {
  margin: 0 44px 5px 0;
  color: var(--psg-blue-950);
  font-family: var(--psg-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}

.psg-modal .modal-header p {
  margin: 0;
  color: var(--psg-muted);
  line-height: 1.5;
}

.psg-modal .modal-header .close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  padding: 0;
  border-radius: var(--psg-radius-sm);
  color: var(--psg-blue-950);
  background: transparent;
  opacity: 1;
  place-items: center;
}

.psg-ranking-classification {
  display: grid;
  grid-template-columns: auto minmax(82px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 142px;
}

.psg-ranking-registration-time {
  display: grid;
  gap: 1px;
  color: var(--psg-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  white-space: nowrap;
}

.psg-ranking-registration-time span:last-child {
  color: var(--psg-ink);
  font-weight: 700;
}

.psg-course-unit-filter {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.psg-course-unit-filter label {
  display: block;
  margin-bottom: 8px;
}

.psg-course-unit-filter select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--psg-border);
  border-radius: 10px;
  color: var(--psg-ink);
  background: #ffffff;
  font: inherit;
}

.psg-modal .modal-header .close:hover,
.psg-modal .modal-header .close:focus-visible {
  color: var(--psg-blue-950);
  background: var(--psg-blue-100);
  outline: 3px solid rgba(0, 109, 168, 0.24);
  outline-offset: 1px;
}

.psg-modal .modal-body {
  padding: 24px;
}

.psg-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.psg-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 24px;
  border-top: 1px solid var(--psg-border);
}

.psg-impact-summary {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #efb4ad;
  border-radius: var(--psg-radius-sm);
  color: #7f1d16;
  background: #fff0ee;
}

.psg-impact-summary p:last-child {
  margin-bottom: 0;
}

.psg-table-region {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.psg-table-region:focus-visible {
  outline: 3px solid rgba(0, 109, 168, 0.28);
  outline-offset: -3px;
}

.psg-data-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  color: var(--psg-ink);
}

.psg-data-table th,
.psg-data-table td {
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--psg-border) !important;
  text-align: left;
  vertical-align: middle !important;
}

.psg-data-table th {
  color: var(--psg-blue-950);
  background: var(--psg-blue-50);
  font-size: 13px;
  font-weight: 700;
}

.psg-data-table.dataTable thead > tr > th.sorting,
.psg-data-table.dataTable thead > tr > th.sorting_asc,
.psg-data-table.dataTable thead > tr > th.sorting_desc {
  padding-right: 34px !important;
}

.psg-data-table.dataTable thead .sorting::after,
.psg-data-table.dataTable thead .sorting_asc::after,
.psg-data-table.dataTable thead .sorting_desc::after {
  top: 50%;
  right: 12px;
  bottom: auto;
  transform: translateY(-50%);
}

.psg-data-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.psg-data-table tbody tr:hover {
  background: #f8fbfc;
}

.psg-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 767px) {
  .psg-table-region,
  .psg-shell .psg-grs-table-wrap.psg-table-region.body {
    overflow: visible;
  }

  .psg-modal-grid {
    grid-template-columns: 1fr;
  }

  .psg-data-table,
  .psg-data-table tbody,
  .psg-data-table tr,
  .psg-data-table td {
    display: block;
    width: 100%;
  }

  .psg-data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .psg-data-table tbody {
    padding: 10px;
  }

  .psg-data-table tr {
    margin-bottom: 12px;
    padding: 8px 14px;
    border: 1px solid var(--psg-border);
    border-radius: 14px;
    background: var(--psg-surface);
  }

  .psg-data-table tr:last-child {
    margin-bottom: 0;
  }

  .psg-data-table td,
  .psg-data-table tbody tr:last-child td {
    display: grid;
    grid-template-columns: minmax(92px, 0.4fr) minmax(0, 0.6fr);
    gap: 12px;
    padding: 11px 0 !important;
    border-bottom: 1px solid var(--psg-border) !important;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .psg-data-table td:last-child,
  .psg-data-table tbody tr:last-child td:last-child {
    border-bottom: 0 !important;
  }

  .psg-data-table td::before {
    color: var(--psg-muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }

  .psg-table-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .psg-modal .modal-dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .psg-modal .modal-body,
  .psg-modal .modal-header {
    padding: 20px 17px;
  }

  .psg-modal .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 16px 17px;
  }

  .psg-modal .modal-footer .psg-button {
    width: 100%;
  }

  .psg-table-actions,
  .psg-table-actions .psg-button {
    width: 100%;
  }
}

.psg-grs-select-field {
  width: min(100%, 680px);
}

.psg-shell .psg-grs-table-wrap.body {
  width: 100%;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.psg-shell .psg-grs-table-wrap.body:focus-visible {
  outline: 3px solid rgba(0, 83, 135, 0.3);
  outline-offset: -3px;
}

.psg-grs-table {
  margin: 0;
  table-layout: auto;
}

.psg-grs-detail-cell {
  text-align: center !important;
}

.psg-grs-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--psg-blue-800);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.psg-grs-field .form-control:disabled,
.psg-grs-field .form-control[readonly] {
  color: var(--psg-muted);
  background: var(--psg-surface-soft);
  cursor: not-allowed;
}

.psg-grs-search-status {
  min-height: 16px;
  margin: 0;
  color: var(--psg-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
}

.psg-grs-search-field {
  position: relative;
}

.psg-grs-search-field .psg-grs-search-status {
  margin-top: 7px;
}

.psg-grs-search-status.is-loading {
  color: var(--psg-blue-800);
}

.psg-grs-search-status.is-success {
  color: #24733f;
}

.psg-grs-search-status.is-error {
  color: #b42318;
}

.psg-grs-detail-link:hover,
.psg-grs-detail-link:focus {
  color: #ffffff;
  background: var(--psg-blue-950);
  box-shadow: 0 0 0 4px rgba(0, 109, 168, 0.18);
  outline: 0;
  transform: scale(1.05);
  text-decoration: none;
}

.psg-grs-detail-link .material-icons {
  font-size: 22px;
}

.psg-shell .psg-grs-section-header.header {
  border-top: 1px solid var(--psg-border);
}

.psg-grs-bootstrap-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  row-gap: 18px;
}

.psg-grs-bootstrap-form-row .input-group {
  width: 100%;
  margin-bottom: 0;
}

.psg-grs-settings-card .demo-masked-input > .row:last-child:empty {
  display: none;
}

@media (max-width: 1100px) {
  .psg-grs-form-grid,
  .psg-grs-form-grid-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psg-grs-field-grow {
    grid-column: span 1;
  }
}

@media (max-width: 767px) {
  .psg-shell .psg-grs-card-header.header,
  .psg-shell .psg-grs-card-body.body {
    padding: 20px 17px;
  }

  .psg-grs-form-grid,
  .psg-grs-form-grid-dates {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .psg-grs-field-wide,
  .psg-grs-field-grow {
    grid-column: auto;
  }

  .psg-grs-form-action {
    margin-top: 2px;
  }

  .psg-grs-bootstrap-form-row > [class*="col-"] {
    width: 100%;
    margin: 0;
  }

  .psg-grs-bootstrap-form-row > [class*="col-"]:empty {
    display: none;
  }

  .psg-grs-detail-cell {
    text-align: right !important;
  }
}

@media (max-width: 480px) {
  .psg-grs-card-header > .material-icons {
    display: none;
  }

  .psg-shell .psg-grs-card-header.header h2 {
    font-size: 21px;
  }
}

/* Gestão de usuários administrativos */
.psg-users-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.psg-users-create-button.btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.psg-users-create-button .material-icons,
.psg-users-action .material-icons {
  font-size: 19px;
}

.psg-users-table td {
  vertical-align: middle !important;
}

.psg-users-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.psg-users-status.is-active {
  border-color: rgba(19, 122, 74, 0.24);
  color: #137a4a;
  background: rgba(19, 122, 74, 0.08);
}

.psg-users-status.is-inactive {
  border-color: #efb4ad;
  color: #922018;
  background: #fff0ee;
}

.psg-users-actions-cell {
  min-width: 250px;
}

.psg-users-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psg-users-action.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin: 0;
  border-radius: 8px;
  font-family: var(--psg-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.psg-users-empty {
  padding: 42px 20px;
  color: var(--psg-muted);
  text-align: center;
}

.psg-users-empty .material-icons {
  color: var(--psg-blue-800);
  font-size: 42px;
}

.psg-users-empty p {
  margin: 8px 0 0;
  font-weight: 600;
}

.psg-users-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: var(--psg-radius-md);
  box-shadow: 0 20px 50px rgba(3, 47, 79, 0.2);
}

.psg-users-modal .modal-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--psg-border);
  background: var(--psg-blue-50);
}

.psg-users-modal .modal-title {
  margin: 0 32px 5px 0;
  color: var(--psg-blue-950);
  font-family: var(--psg-display);
  font-size: 23px;
  font-weight: 700;
}

.psg-users-modal .modal-header p {
  margin: 0;
  color: var(--psg-muted);
  line-height: 1.45;
}

.psg-users-modal .modal-body {
  padding: 24px;
}

.psg-users-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 24px;
  border-top: 1px solid var(--psg-border);
}

.psg-users-modal .modal-footer .btn {
  margin: 0;
}

.psg-users-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.psg-users-field-wide {
  grid-column: 1 / -1;
}

@media (max-width: 767px) {
  .psg-users-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .psg-users-create-button.btn {
    width: 100%;
  }

  .psg-users-table .psg-users-actions-cell {
    display: block;
    text-align: left;
  }

  .psg-users-table .psg-users-actions-cell::before {
    display: block;
    margin-bottom: 10px;
  }

  .psg-users-actions-cell,
  .psg-users-actions {
    min-width: 0;
  }

  .psg-users-actions {
    justify-content: flex-start;
  }

  .psg-users-modal-grid {
    grid-template-columns: 1fr;
  }

  .psg-users-field-wide {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .psg-users-actions,
  .psg-users-action.btn {
    width: 100%;
  }

  .psg-users-modal .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .psg-users-modal .modal-footer .btn {
    width: 100%;
  }
}

/* Detalhes da inscrição GRS */
.psg-grs-detail-page {
  max-width: 1480px;
}

.psg-shell .psg-grs-detail-card.card {
  overflow: hidden;
}

.psg-shell .psg-grs-detail-header.header {
  min-height: 78px;
  background: linear-gradient(135deg, var(--psg-blue-950), var(--psg-blue-900));
}

.psg-shell .psg-grs-detail-header.header h2 {
  color: #ffffff;
  font-size: clamp(22px, 3vw, 30px);
}

.psg-shell .psg-grs-detail-body.body {
  padding: clamp(18px, 3vw, 32px);
}

.psg-grs-detail-form {
  min-width: 0;
}

.psg-grs-detail-form .form-control[readonly],
.psg-grs-detail-form .form-control[disabled],
.psg-grs-detail-form .bootstrap-select.disabled > .dropdown-toggle,
.psg-grs-detail-form .select2-container--disabled .select2-selection--single {
  border-color: #c5d0d6;
  color: #4d5c66;
  background: #f2f5f6;
  cursor: not-allowed;
  opacity: 1;
}

.psg-grs-detail-form .form-control[readonly] {
  border-left: 3px solid #9cabb4;
}

.psg-grs-detail-form .select2-container--disabled .select2-selection__arrow b {
  display: none;
}

.psg-grs-detail-form .select2-container--disabled .select2-selection__arrow::before {
  content: "lock";
  color: var(--psg-muted);
  font-family: "Material Icons";
  font-size: 17px;
  line-height: 46px;
}

.psg-grs-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.psg-grs-detail-back .material-icons {
  font-size: 18px;
}

.psg-grs-detail-back:hover,
.psg-grs-detail-back:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.psg-grs-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 14px;
  border: 1px solid var(--psg-blue-100);
  border-radius: var(--psg-radius-sm);
  color: var(--psg-ink);
  background: var(--psg-blue-50);
}

.psg-grs-detail-metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-left: 1px solid var(--psg-blue-700);
}

.psg-grs-detail-metric strong {
  color: var(--psg-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.psg-grs-detail-metric span {
  overflow-wrap: anywhere;
  color: var(--psg-blue-950);
  font-size: 17px;
  font-weight: 700;
}

.psg-grs-viewing-presence {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin: -16px 0 28px;
  padding: 9px 13px;
  border: 1px solid rgba(184, 112, 0, 0.28);
  border-radius: 999px;
  color: #6d4200;
  background: #fff8e8;
  font-size: 13px;
  font-weight: 700;
}

.psg-grs-viewing-presence[hidden] {
  display: none;
}

.psg-grs-viewing-presence .material-icons {
  flex: 0 0 auto;
  color: #b87000;
  font-size: 18px;
}

.psg-grs-viewing-presence span {
  overflow-wrap: anywhere;
}

.psg-grs-detail-section-heading {
  margin: 30px 0 18px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--psg-border);
}

.psg-grs-detail-section-heading h3 {
  margin: 0 0 4px;
  color: var(--psg-blue-950);
  font-family: var(--psg-display);
  font-size: 21px;
  line-height: 1.25;
}

.psg-grs-detail-section-heading p {
  margin: 0;
  color: var(--psg-muted);
  font-size: 14px;
}

.psg-grs-detail-subheading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 109, 168, 0.16);
}

.psg-grs-detail-subheading h4 {
  margin: 0;
  color: var(--psg-blue-900);
  font-size: 16px;
  font-weight: 700;
}

.psg-grs-detail-subheading span {
  color: var(--psg-muted);
  font-size: 13px;
  text-align: right;
}

.psg-grs-detail-form > .row.clearfix {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 22px;
}

/* Bootstrap clearfix pseudo-elements must not become grid columns. */
.psg-grs-detail-form > .row.clearfix::before,
.psg-grs-detail-form > .row.clearfix::after {
  display: none;
  content: none;
}

.psg-grs-detail-form > .row.clearfix > [class*="col-"] {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
}

.psg-grs-detail-form > .row.clearfix > .col-sm-2,
.psg-grs-detail-form > .row.clearfix > .col-md-2 {
  grid-column: span 2;
}

.psg-grs-detail-form > .row.clearfix > .col-sm-3,
.psg-grs-detail-form > .row.clearfix > .col-md-3 {
  grid-column: span 3;
}

.psg-grs-detail-form > .row.clearfix > .col-sm-4,
.psg-grs-detail-form > .row.clearfix > .col-md-4 {
  grid-column: span 4;
}

.psg-grs-detail-form > .row.clearfix > .col-sm-6,
.psg-grs-detail-form > .row.clearfix > .col-md-6 {
  grid-column: span 6;
}

.psg-grs-detail-form > .row.clearfix > .col-sm-7,
.psg-grs-detail-form > .row.clearfix > .col-md-7 {
  grid-column: span 7;
}

.psg-grs-detail-form > .row.clearfix > .col-sm-8,
.psg-grs-detail-form > .row.clearfix > .col-md-8 {
  grid-column: span 8;
}

.psg-grs-detail-form > .row.clearfix > .col-sm-9,
.psg-grs-detail-form > .row.clearfix > .col-md-9 {
  grid-column: span 9;
}

.psg-grs-detail-form > .row.clearfix > .col-sm-12,
.psg-grs-detail-form > .row.clearfix > .col-md-12,
.psg-grs-detail-form > .row.clearfix > .col-lg-12 {
  grid-column: 1 / -1;
}

.psg-grs-detail-form .input-group,
.psg-grs-detail-form .form-line {
  width: 100%;
  margin: 0;
}

.psg-grs-detail-form .bootstrap-select {
  display: block;
  width: 100% !important;
  min-width: 0;
  padding: 0 !important;
  border: 0;
  border-radius: var(--psg-radius-sm) !important;
  background: transparent !important;
  box-shadow: none;
  box-sizing: border-box;
}

.psg-grs-detail-form .bootstrap-select > .dropdown-toggle {
  display: block;
  position: absolute;
  inset: -1px;
  width: auto;
  min-height: 48px;
  height: auto;
  margin: 0 !important;
  padding: 10px 13px;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-sm);
  color: var(--psg-ink);
  background: #ffffff;
  box-shadow: none;
  font-family: var(--psg-font);
  font-size: 15px;
  text-align: left;
  box-sizing: border-box;
}

.psg-grs-detail-form .bootstrap-select {
  position: relative;
}

.psg-grs-detail-form .bootstrap-select > .dropdown-toggle:focus {
  outline: none !important;
  border-color: var(--psg-blue-700);
  box-shadow: 0 0 0 4px rgba(0, 109, 168, 0.14);
}

.psg-grs-detail-form > .row.clearfix + .psg-grs-detail-subheading {
  margin-top: 30px;
}

.psg-grs-detail-form .input-group > b,
.psg-grs-detail-form > .row > [class*="col-"] > b,
.psg-grs-detail-label {
  display: block;
  margin: 0 0 8px;
  color: var(--psg-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.psg-grs-detail-form .form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-sm);
  color: var(--psg-ink);
  background: #ffffff;
  box-shadow: none;
  font-family: var(--psg-font);
  font-size: 15px;
}

.psg-shell .psg-grs-detail-form input.form-control {
  padding: 10px 13px;
}

.psg-grs-detail-form textarea.form-control {
  min-height: 132px;
  resize: vertical;
}

.psg-grs-detail-form .form-control:focus {
  border-color: var(--psg-blue-700);
  box-shadow: 0 0 0 4px rgba(0, 109, 168, 0.14);
  outline: none;
}

.psg-grs-detail-attachments.card {
  margin: 0;
  box-shadow: none;
}

.psg-grs-detail-table-wrap.body {
  padding: 0;
}

.psg-grs-detail-file-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--psg-blue-900);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.psg-grs-detail-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.psg-grs-detail-action-list .btn,
.psg-grs-detail-cancel-control .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border-radius: var(--psg-radius-sm);
  font-family: var(--psg-font);
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.psg-grs-detail-history {
  padding-top: 10px;
}

.psg-grs-detail-history .psg-grs-detail-section-heading {
  margin-top: 0;
}

.psg-grs-detail-history .table-responsive {
  width: 100%;
  overflow-x: auto;
}

.psg-grs-detail-history table,
.psg-grs-detail-attachments table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
}

.psg-grs-detail-history th,
.psg-grs-detail-history td,
.psg-grs-detail-attachments th,
.psg-grs-detail-attachments td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.psg-grs-detail-cancel {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--psg-border);
}

.psg-grs-detail-cancel-control {
  width: min(100%, 260px);
}

.psg-grs-detail-danger-button.btn {
  color: #ffffff;
  background: var(--psg-danger);
}

.psg-grs-detail-danger-button.btn:hover,
.psg-grs-detail-danger-button.btn:focus {
  color: #ffffff;
  background: #8f1d15;
}

@media (max-width: 900px) {
  .psg-grs-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .psg-grs-detail-metrics {
    grid-template-columns: 1fr;
  }

  .psg-grs-detail-form > .row.clearfix {
    display: block;
    margin-bottom: 0;
  }

  .psg-grs-detail-form > .row.clearfix > [class*="col-"] {
    display: block;
    width: 100%;
    margin-bottom: 18px;
  }

  .psg-grs-detail-form > .row.clearfix > [class*="col-"]:last-child {
    margin-bottom: 0;
  }

  .psg-grs-detail-subheading {
    display: block;
    margin: 24px 0 12px;
  }

  .psg-grs-detail-subheading h4 {
    margin-bottom: 3px;
  }

  .psg-grs-detail-subheading span {
    display: block;
    text-align: left;
  }

  .psg-grs-detail-action-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .psg-grs-detail-action-list .btn,
  .psg-grs-detail-cancel-control .btn {
    width: 100%;
  }

  .psg-grs-detail-history .table-responsive {
    overflow: visible;
  }

  .psg-grs-detail-history table,
  .psg-grs-detail-history tbody,
  .psg-grs-detail-history tr,
  .psg-grs-detail-history td,
  .psg-grs-detail-attachments table,
  .psg-grs-detail-attachments tbody,
  .psg-grs-detail-attachments tr,
  .psg-grs-detail-attachments td {
    display: block;
    width: 100%;
  }

  .psg-grs-detail-history thead,
  .psg-grs-detail-attachments thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .psg-grs-detail-history tr,
  .psg-grs-detail-attachments tr {
    margin-bottom: 12px;
    padding: 8px 14px;
    border: 1px solid var(--psg-border);
    border-radius: var(--psg-radius-sm);
    background: #ffffff;
  }

  .psg-grs-detail-history td,
  .psg-grs-detail-attachments td {
    display: grid;
    grid-template-columns: minmax(90px, 0.38fr) minmax(0, 0.62fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--psg-border);
    text-align: right;
  }

  .psg-grs-detail-history td:last-child,
  .psg-grs-detail-attachments td:last-child {
    border-bottom: 0;
  }

  .psg-grs-detail-history td::before,
  .psg-grs-detail-attachments td::before {
    color: var(--psg-muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }

  .psg-grs-detail-cancel {
    display: block !important;
  }

  .psg-grs-detail-cancel-control {
    width: 100%;
  }
}

.psg-toast-container {
  position: fixed;
  z-index: 10000;
  top: 20px;
  right: 20px;
  display: grid;
  width: min(400px, calc(100vw - 32px));
  gap: 12px;
  pointer-events: none;
}

.psg-toast {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 12px 12px 0;
  border: 1px solid var(--psg-border, #d6e2e9);
  border-radius: 14px;
  background: var(--psg-surface, #fff);
  box-shadow: 0 18px 42px rgba(3, 47, 79, 0.2);
  color: var(--psg-ink, #173042);
  font-family: var(--psg-font, "Segoe UI", sans-serif);
  pointer-events: auto;
  animation: psg-toast-enter 180ms ease-out;
}

.psg-toast.is-leaving {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.psg-toast__marker {
  align-self: stretch;
  border-radius: 0 6px 6px 0;
  background: var(--psg-blue-700, #006da8);
}

.psg-toast--success .psg-toast__marker { background: var(--psg-success, #137a4a); }
.psg-toast--error .psg-toast__marker { background: var(--psg-danger, #b42318); }
.psg-toast--warning .psg-toast__marker { background: var(--psg-orange, #f7941d); }

.psg-toast__message {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: pre-line;
}

.psg-toast__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--psg-muted, #607383);
  cursor: pointer;
  font: 24px/1 Arial, sans-serif;
}

.psg-toast__close:hover,
.psg-toast__close:focus-visible {
  background: var(--psg-blue-50, #eff7fb);
  color: var(--psg-blue-900, #004a78);
  outline: none;
}

.psg-toast__action {
  width: auto;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--psg-blue-900, #004a78);
  font: 700 13px/1 var(--psg-font, "Segoe UI", sans-serif);
}

@keyframes psg-toast-enter {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .psg-toast-container {
    top: 12px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psg-toast,
  .psg-toast.is-leaving {
    animation: none;
    transition: none;
  }
}

.psg-modal-open {
  overflow: hidden;
}

.psg-confirm-backdrop {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(3, 47, 79, 0.58);
  backdrop-filter: blur(3px);
  animation: psg-confirm-backdrop-enter 160ms ease-out;
}

.psg-confirm {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  width: min(100%, 480px);
  overflow: hidden;
  border: 1px solid var(--psg-border, #d6e2e9);
  border-radius: 18px;
  background: var(--psg-surface, #fff);
  box-shadow: 0 24px 70px rgba(3, 47, 79, 0.3);
  color: var(--psg-ink, #173042);
  font-family: var(--psg-font, "Segoe UI", sans-serif);
  animation: psg-confirm-enter 180ms ease-out;
}

.psg-confirm__marker { background: var(--psg-blue-700, #006da8); }
.psg-confirm--success .psg-confirm__marker { background: var(--psg-success, #137a4a); }
.psg-confirm--error .psg-confirm__marker { background: var(--psg-danger, #b42318); }
.psg-confirm--warning .psg-confirm__marker { background: var(--psg-orange, #f7941d); }

.psg-confirm__content {
  max-height: calc(100vh - 40px);
  padding: 26px;
  overflow-y: auto;
}

.psg-confirm__title {
  margin: 0 0 8px;
  color: var(--psg-blue-950, #003b61);
  font-family: var(--psg-display, "Segoe UI", sans-serif);
  font-size: 22px;
  line-height: 1.25;
}

.psg-confirm__message {
  margin: 0;
  color: var(--psg-muted, #607383);
  font-size: 15px;
  line-height: 1.55;
}

.psg-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.psg-confirm__button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font: 700 14px/1.2 var(--psg-font, "Segoe UI", sans-serif);
}

.psg-confirm__button--cancel {
  border-color: var(--psg-border, #d6e2e9);
  background: var(--psg-surface, #fff);
  color: var(--psg-blue-900, #004a78);
}

.psg-confirm__button--confirm {
  background: var(--psg-blue-900, #004a78);
  color: #fff;
}

.psg-confirm--success .psg-confirm__button--confirm { background: var(--psg-success, #137a4a); }
.psg-confirm--error .psg-confirm__button--confirm { background: var(--psg-danger, #b42318); }
.psg-confirm--warning .psg-confirm__button--confirm { background: #b75b00; }

.psg-confirm__button:hover { filter: brightness(0.94); }
.psg-confirm__button:focus-visible { outline: 3px solid rgba(247, 148, 29, 0.45); outline-offset: 2px; }

@keyframes psg-confirm-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes psg-confirm-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .psg-confirm-backdrop { align-items: end; padding: 12px; }
  .psg-confirm { border-radius: 16px; }
  .psg-confirm__content { max-height: calc(100vh - 24px); padding: 22px 18px; }
  .psg-confirm__actions { flex-direction: column-reverse; }
  .psg-confirm__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .psg-confirm-backdrop,
  .psg-confirm { animation: none; }
}

/* Dashboard e histórico GRS */
.psg-grs-dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.psg-grs-dashboard-filter {
  flex: 0 1 520px;
}

.psg-grs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.psg-grs-kpi-card {
  position: relative;
  display: grid;
  min-height: 158px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-md);
  background: var(--psg-surface);
  box-shadow: 0 12px 32px rgba(3, 47, 79, 0.07);
}

.psg-grs-kpi-card > .material-icons {
  position: absolute;
  top: 18px;
  right: 54px;
  color: var(--psg-blue-300);
  font-size: 30px;
}

.psg-kpi-help-button {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 2;
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--psg-blue-100);
  border-radius: 50%;
  background: var(--psg-blue-50);
  color: var(--psg-blue-900);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.psg-kpi-help-button:hover,
.psg-kpi-help-button[aria-expanded="true"] {
  background: var(--psg-blue-900);
  color: #fff;
  transform: translateY(-1px);
}

.psg-kpi-help-button:focus-visible {
  outline: 3px solid rgba(0, 91, 164, 0.24);
  outline-offset: 2px;
}

.psg-kpi-help-panel {
  z-index: 1;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--psg-blue-100);
  border-radius: 12px;
  background: rgba(247, 252, 255, 0.98);
  color: var(--psg-blue-950);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(3, 47, 79, 0.12);
}

.psg-kpi-help-panel[hidden] {
  display: none;
}

.psg-grs-kpi-label {
  max-width: calc(100% - 38px);
  color: var(--psg-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.psg-grs-kpi-card strong {
  align-self: end;
  color: var(--psg-blue-950);
  font-family: var(--psg-display);
  font-size: 34px;
  line-height: 1;
}

.psg-grs-kpi-card small {
  margin-top: 8px;
  color: var(--psg-muted);
  font-size: 12px;
  line-height: 1.35;
}

.psg-grs-dashboard-charts {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.psg-shell .psg-grs-chart-card.card {
  min-width: 0;
}

.psg-grs-chart-body {
  position: relative;
  height: 330px;
}

.psg-grs-chart-empty {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  color: var(--psg-muted);
  font-size: 15px;
  text-align: center;
}

.psg-grs-chart-empty[hidden] {
  display: none;
}

.psg-grs-history-result {
  border-left: 1px solid var(--psg-orange);
}

.psg-grs-history-result h2:focus {
  outline: 3px solid rgba(0, 109, 168, 0.24);
  outline-offset: 4px;
}

.psg-shell .dataTables_wrapper {
  padding: 18px 20px 22px;
}

.psg-shell .dataTables_wrapper .row:first-child,
.psg-shell .dataTables_wrapper .row:last-child {
  margin-right: 0;
  margin-left: 0;
}

.psg-shell .dataTables_wrapper .dataTables_filter input,
.psg-shell .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--psg-border);
  border-radius: 8px;
  background: var(--psg-surface);
}

.psg-shell .dataTables_wrapper .pagination > .active > a {
  border-color: var(--psg-blue-700);
  background: var(--psg-blue-700);
}

.psg-grs-table-secondary {
  display: block;
  margin-top: 4px;
  color: var(--psg-muted);
  font-size: 13px;
}

.psg-grs-stage-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--psg-blue-900);
  background: var(--psg-blue-50);
  font-size: 12px;
  font-weight: 700;
}

.psg-grs-stage-state[data-state="N"],
.psg-grs-stage-state[data-status="Sem status"] {
  color: #5e6872;
  background: #edf0f2;
}

.psg-grs-empty-state {
  display: block;
  padding: 34px 24px;
  color: var(--psg-muted);
  font-size: 15px;
  text-align: center;
}

.psg-grs-history-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.psg-grs-history-filter-row {
  display: flex;
  align-items: flex-end;
}

.psg-grs-history-filter-action {
  display: flex;
  align-items: flex-end;
}

.psg-grs-history-filter-action .psg-button {
  width: 100%;
}

.psg-grs-history-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.psg-grs-history-guide li {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--psg-border);
  border-radius: 10px;
  background: var(--psg-blue-50);
}

.psg-grs-history-guide strong {
  color: var(--psg-blue-900);
  font-size: 13px;
}

.psg-grs-history-guide span {
  color: var(--psg-muted);
  font-size: 12px;
  line-height: 1.4;
}

.psg-grs-history-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--psg-blue-200);
  border-radius: 8px;
  color: var(--psg-blue-800);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.psg-grs-history-link:hover,
.psg-grs-history-link:focus-visible {
  border-color: var(--psg-blue-600);
  color: var(--psg-blue-950);
  background: var(--psg-blue-50);
  text-decoration: none;
}

.psg-grs-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--psg-border);
  border-radius: var(--psg-radius-md);
  background: var(--psg-border);
}

.psg-grs-history-summary > div {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--psg-surface);
}

.psg-grs-history-summary span {
  color: var(--psg-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.psg-grs-history-summary strong {
  color: var(--psg-blue-950);
  font-size: 16px;
}

.psg-grs-history-changes {
  padding: 20px;
}

.psg-grs-history-change-list {
  display: grid;
  gap: 10px;
}

.psg-grs-history-change {
  overflow: hidden;
  border: 1px solid var(--psg-border);
  border-radius: 10px;
  background: var(--psg-surface);
}

.psg-grs-history-change-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--psg-surface-soft);
  cursor: pointer;
  list-style: none;
}

.psg-grs-history-change-header::-webkit-details-marker {
  display: none;
}

.psg-grs-history-change-header:focus-visible {
  outline: 3px solid rgba(0, 109, 168, 0.22);
  outline-offset: -3px;
}

.psg-grs-history-change-marker {
  color: var(--psg-blue-700);
  font-size: 21px;
  transition: transform 160ms ease;
}

.psg-grs-history-change[open] .psg-grs-history-change-marker {
  transform: rotate(90deg);
}

.psg-grs-history-change-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.psg-grs-history-change-header strong {
  color: var(--psg-blue-950);
}

.psg-grs-history-change-header span,
.psg-grs-history-change-header time {
  color: var(--psg-muted);
  font-size: 13px;
}

.psg-grs-history-change-header time {
  white-space: nowrap;
}

.psg-grs-history-change-diff {
  border-top: 1px solid var(--psg-border);
  background: #fbfcfd;
}

.psg-grs-history-change-columns,
.psg-grs-history-change-line {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) repeat(2, minmax(0, 1fr));
}

.psg-grs-history-change-columns {
  color: var(--psg-muted);
  background: #eef3f6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.psg-grs-history-change-columns span,
.psg-grs-history-change-line > * {
  min-width: 0;
  margin: 0;
  padding: 9px 12px;
  overflow-wrap: anywhere;
}

.psg-grs-history-change-columns span + span,
.psg-grs-history-change-line > * + * {
  border-left: 1px solid var(--psg-border);
}

.psg-grs-history-change-line {
  border-top: 1px solid var(--psg-border);
}

.psg-grs-history-change-line strong {
  color: var(--psg-ink);
  background: #f7f9fa;
  font-size: 13px;
}

.psg-grs-history-change-line code {
  border-radius: 0;
  color: var(--psg-ink);
  background: transparent;
  font: 12px/1.45 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}

.psg-grs-history-change-line code:nth-of-type(1) {
  background: #fff2f1;
}

.psg-grs-history-change-line code:nth-of-type(2) {
  background: #edf8f1;
}

.psg-grs-history-change-line.is-added code:nth-of-type(1),
.psg-grs-history-change-line.is-removed code:nth-of-type(2) {
  color: var(--psg-muted);
  background: #f7f9fa;
}

.psg-grs-history-change-empty {
  padding: 18px;
  color: var(--psg-muted);
  font-style: italic;
}

@media (max-width: 1100px) {
  .psg-grs-kpi-grid,
  .psg-grs-history-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .psg-grs-dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .psg-grs-dashboard-filter {
    flex-basis: auto;
  }

  .psg-grs-dashboard-charts,
  .psg-grs-history-filters,
  .psg-grs-history-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .psg-grs-history-summary {
    grid-template-columns: 1fr;
  }

  .psg-grs-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .psg-grs-kpi-card {
    min-height: 126px;
    padding: 17px;
  }

  .psg-grs-kpi-card strong {
    font-size: 28px;
  }

  .psg-grs-chart-body {
    height: 280px;
  }
}

/* Refinamento visual: acesso e area do candidato */
.psg-login-page,
.psg-signup-page,
.psg-recovery-page {
  background: #f5f8fa;
}

.psg-login-page::before,
.psg-signup-page::before,
.psg-recovery-page::before {
  background-image: none;
}

.psg-login-page .psg-access-intro,
.psg-signup-page .psg-access-intro,
.psg-recovery-page .psg-access-intro {
  border-bottom: 6px solid var(--psg-orange);
  background: var(--psg-blue-950);
}

.psg-login-page .psg-access-card,
.psg-signup-page .psg-access-card,
.psg-recovery-page .psg-access-card {
  border: 1px solid var(--psg-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

@media (min-width: 901px) {
  .psg-login-page .psg-access-panel,
  .psg-signup-page .psg-access-panel,
  .psg-recovery-page .psg-access-panel {
    padding-block: 24px;
  }
}

.psg-login-page .psg-email-confirmation h2,
.psg-signup-page .psg-email-confirmation h2 {
  margin-top: 0;
}

.psg-login-page .psg-email-confirmation-note,
.psg-signup-page .psg-email-confirmation-note {
  border-radius: 8px;
}

.psg-login-page .psg-primary-button,
.psg-signup-page .psg-primary-button,
.psg-recovery-page .psg-primary-button {
  box-shadow: none;
  transition: background-color 180ms ease;
}

.psg-login-page .psg-primary-button:hover,
.psg-login-page .psg-primary-button:focus,
.psg-signup-page .psg-primary-button:hover,
.psg-signup-page .psg-primary-button:focus,
.psg-recovery-page .psg-primary-button:hover,
.psg-recovery-page .psg-primary-button:focus {
  box-shadow: none;
  transform: none;
}

.psg-candidate-shell .psg-topbar {
  box-shadow: none;
}

.psg-candidate-shell .psg-user-summary {
  padding: 5px 8px;
  border: 0;
  background: transparent;
}

@media (max-width: 700px) {
  .psg-grs-history-change-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .psg-grs-history-change-header time {
    grid-column: 2;
  }

  .psg-grs-history-change-columns {
    display: none;
  }

  .psg-grs-history-change-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psg-grs-history-change-line strong {
    grid-column: 1 / -1;
  }

  .psg-grs-history-change-line code {
    border-top: 1px solid var(--psg-border);
    border-left: 0 !important;
  }

  .psg-grs-history-change-line code::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--psg-muted);
    font: 700 10px/1.2 var(--psg-font);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
}

.psg-candidate-shell .sidebar .psg-stage-context {
  display: grid;
  gap: 10px;
  box-sizing: border-box;
  margin: 0 14px 14px;
  padding: 14px;
  border: 1px solid var(--psg-blue-100);
  border-left: 1px solid var(--psg-orange);
  border-radius: var(--psg-radius-sm);
  color: var(--psg-blue-950);
  background: var(--psg-blue-50);
}

.psg-stage-context-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--psg-blue-700);
}

.psg-stage-context-heading .material-icons {
  flex: 0 0 auto;
  font-size: 16px;
}

.psg-stage-context-heading small {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.psg-stage-context > strong {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.psg-stage-change {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--psg-blue-700);
  border-radius: var(--psg-radius-sm);
  color: var(--psg-blue-700);
  background: var(--psg-surface);
  font-family: var(--psg-font);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.psg-stage-change .material-icons {
  font-size: 16px;
}

.psg-stage-change:hover,
.psg-stage-change:focus-visible {
  color: var(--psg-surface);
  background: var(--psg-blue-700);
}

.psg-stage-change:focus-visible,
.psg-stage-option:focus-visible {
  outline: 3px solid var(--psg-orange) !important;
  outline-offset: 2px;
}

.psg-stage-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--psg-border);
  border-radius: 8px;
  color: var(--psg-blue-900);
  background: #ffffff;
  text-align: left;
}

.psg-access-page a.psg-stage-option,
.psg-access-page a.psg-stage-option:hover,
.psg-access-page a.psg-stage-option:focus,
.psg-access-page a.psg-stage-option *,
.psg-access-page a.psg-stage-option:hover *,
.psg-access-page a.psg-stage-option:focus * {
  text-decoration: none !important;
}

.psg-access-page a.psg-stage-option:not(.is-unavailable):hover,
.psg-access-page a.psg-stage-option:not(.is-unavailable):focus {
  border-color: var(--psg-blue-700);
  color: var(--psg-blue-950);
  background: var(--psg-blue-50);
}

.psg-stage-option span,
.psg-stage-option small {
  display: block;
}

.psg-stage-option em {
  color: var(--psg-blue-700);
  font-style: normal;
  font-weight: 700;
}

.psg-stage-option.is-current {
  border-color: var(--psg-blue-700);
  background: var(--psg-blue-50);
}

.psg-stage-option.is-unavailable {
  color: #607d8b;
  background: #f4f6f7;
  cursor: not-allowed;
  opacity: 0.8;
  pointer-events: none;
  text-decoration: none !important;
}

.psg-stage-option.is-unavailable * {
  text-decoration: none !important;
}

.psg-stage-empty {
  padding: 20px;
  color: #607d8b;
  text-align: center;
}

.psg-candidate-shell .sidebar .psg-sidebar-brand {
  min-height: 64px;
  padding: 20px;
}

.psg-candidate-shell .sidebar .menu .psg-nav-list > li.active > a {
  background: var(--psg-blue-50);
}

.psg-candidate-shell .psg-candidate-hero {
  border-radius: 8px;
  background: var(--psg-blue-950);
  box-shadow: none;
}

.psg-candidate-shell .psg-candidate-hero::after {
  display: none;
}

.psg-candidate-shell .psg-candidate-actions {
  display: block;
  border-top: 1px solid var(--psg-border);
}

.psg-candidate-shell .psg-candidate-action-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  min-height: 96px;
  padding: 20px 8px;
  border: 0;
  border-bottom: 1px solid var(--psg-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.psg-candidate-shell .psg-candidate-action-card:hover,
.psg-candidate-shell .psg-candidate-action-card:focus-visible {
  color: var(--psg-blue-900);
  border-color: var(--psg-border);
  background: #ffffff;
  box-shadow: none;
  transform: none;
}

.psg-candidate-shell .psg-candidate-action-card:focus-visible {
  outline: 3px solid var(--psg-orange) !important;
  outline-offset: 3px;
}

.psg-candidate-shell .psg-candidate-action-card > .material-icons:first-child {
  width: 40px;
  height: auto;
  border-radius: 0;
  color: var(--psg-blue-700);
  background: transparent;
  font-size: 28px;
  text-align: center;
}

.psg-candidate-shell .psg-candidate-table-card,
.psg-candidate-shell .psg-enrollment-terms,
.psg-candidate-shell .psg-enrollment-summary {
  border-radius: 8px;
  box-shadow: none;
}

.psg-candidate-shell .psg-enrollment-section-heading .material-icons {
  flex: 0 0 28px;
  width: 28px;
  height: auto;
  border-radius: 0;
  color: var(--psg-blue-700);
  background: transparent;
  font-size: 26px;
}

.psg-admin-login-page {
  background: radial-gradient(ellipse 130% 105% at center, #ffffff 0%, #eef4fb 38%, #c9dcef 66%, #6d9fc9 86%, #135492 112%);
}

.psg-admin-login-page::before {
  display: none;
}

.psg-admin-login-page .psg-access-card {
  border: 1px solid var(--psg-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.psg-admin-login-page .psg-admin-login-logo {
  height: 100px;
}

.psg-admin-login-page .psg-primary-button {
  box-shadow: none;
  transition: background-color 180ms ease;
}

.psg-admin-login-page .psg-primary-button:hover,
.psg-admin-login-page .psg-primary-button:focus {
  box-shadow: none;
  transform: none;
}

.psg-login-page .psg-primary-button:focus-visible,
.psg-signup-page .psg-primary-button:focus-visible,
.psg-admin-login-page .psg-primary-button:focus-visible,
.psg-recovery-page .psg-primary-button:focus-visible {
  outline: 3px solid var(--psg-orange) !important;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .psg-login-page .psg-access-intro,
  .psg-signup-page .psg-access-intro,
  .psg-recovery-page .psg-access-intro {
    border-bottom-width: 4px;
  }

  .psg-login-page .psg-access-intro::after,
  .psg-signup-page .psg-access-intro::after,
  .psg-recovery-page .psg-access-intro::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .psg-candidate-shell .sidebar .psg-stage-context {
    margin-inline: 10px;
  }

  .psg-stage-option {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .psg-stage-option em {
    grid-column: 2;
  }

  .psg-candidate-shell .psg-candidate-action-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 18px 4px;
  }
}

/* Icones nos botoes de acesso */
.psg-login-submit,
.psg-button-wrap {
  position: relative;
}

.psg-login-submit .psg-button-icon,
.psg-button-wrap .psg-button-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
  font-size: 20px;
  pointer-events: none;
}

.psg-login-submit .psg-primary-button,
.psg-button-wrap .psg-primary-button {
  padding-left: 44px;
}

/* Moldura NSI do candidato (PBI 1573, T1) */
.psg-candidate-shell .psg-menu-etapa {
  display: grid;
  gap: 8px;
  margin: 12px 12px 4px;
  padding: 14px;
  border: 1px solid var(--nsi-menu-linha, rgba(255, 255, 255, .18));
  border-radius: var(--nsi-raio, 8px);
  color: var(--nsi-menu-texto, #fff);
}

.psg-candidate-shell .psg-menu-etapa small {
  font-size: .875rem;
  opacity: .85;
}

.psg-candidate-shell .psg-menu-etapa strong {
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.psg-candidate-shell .psg-menu-etapa .nsi-btn {
  justify-content: center;
}

@media (min-width: 1024px) {
  [data-nsi-menu="recolhido"] .psg-candidate-shell .psg-menu-etapa {
    display: none;
  }
}

.psg-candidate-shell .psg-atalhos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.psg-candidate-shell .psg-atalho,
.psg-candidate-shell .psg-atalho:hover,
.psg-candidate-shell .psg-atalho:focus {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--nsi-borda, #d9e0e8);
  border-radius: var(--nsi-raio, 8px);
  color: var(--nsi-azul-800, #0b2a4a);
  background: var(--nsi-superficie, #fff);
  text-decoration: none;
}

.psg-candidate-shell .psg-atalho:hover,
.psg-candidate-shell .psg-atalho:focus-visible {
  border-color: var(--nsi-azul, #004a8d);
}

.psg-candidate-shell .psg-atalho > i {
  font-size: 1.75rem;
  color: var(--nsi-laranja, #f7941d);
}

.psg-candidate-shell .psg-atalho strong,
.psg-candidate-shell .psg-atalho small {
  display: block;
}

.psg-candidate-shell .psg-atalho small {
  margin-top: .25rem;
  opacity: .8;
}

.psg-candidate-shell .psg-stage-option > i {
  font-size: 1.5rem;
}

.psg-candidate-shell .nsi-menu-topo > div {
  min-width: 0;
}

.psg-candidate-shell .nsi-menu-topo > div > strong {
  font-size: .9rem;
  white-space: nowrap;
}

/* Cores do tema do NSI (claro/escuro) e sem sublinhado herdado do Bootstrap legado (PBI 1573, T1) */
.psg-candidate-shell .nsi-menu-link:hover,
.psg-candidate-shell .nsi-menu-link:focus,
.psg-candidate-shell .nsi-menu-sair:hover,
.psg-candidate-shell .nsi-menu-sair:focus,
.psg-candidate-shell .nsi-migalhas a:hover,
.psg-candidate-shell .nsi-migalhas a:focus,
.psg-candidate-shell .nsi-pular:hover,
.psg-candidate-shell .nsi-pular:focus,
.psg-candidate-shell .psg-atalho:hover,
.psg-candidate-shell .psg-atalho:focus,
.psg-candidate-shell .psg-stage-option:hover,
.psg-candidate-shell .psg-stage-option:focus {
  text-decoration: none;
}

.psg-candidate-shell .psg-atalho small {
  opacity: 1;
  color: var(--nsi-texto-suave, #5a6b7c);
}

.psg-candidate-shell .psg-stage-option,
.psg-candidate-shell .psg-stage-option:hover,
.psg-candidate-shell .psg-stage-option:focus {
  border-color: var(--nsi-borda, #d9e0e8);
  color: var(--nsi-azul-800, #0b2a4a);
  background: var(--nsi-superficie, #fff);
}

.psg-candidate-shell .psg-stage-option:not(.is-unavailable):not(.is-current):hover,
.psg-candidate-shell .psg-stage-option:not(.is-unavailable):not(.is-current):focus-visible {
  border-color: var(--nsi-azul, #004a8d);
  background: var(--nsi-azul-suave, #e6eef6);
}

.psg-candidate-shell .psg-stage-option.is-current {
  border-color: var(--nsi-azul, #004a8d);
  background: var(--nsi-azul-suave, #e6eef6);
}

.psg-candidate-shell .psg-stage-option.is-unavailable {
  color: var(--nsi-texto-suave, #5a6b7c);
  background: var(--nsi-superficie-2, #f4f6f7);
}

.psg-candidate-shell .psg-stage-option em {
  color: var(--nsi-azul, #004a8d);
}

.psg-candidate-shell .psg-stage-empty {
  color: var(--nsi-texto-suave, #5a6b7c);
}

/* Lista de cursos e confirmação de inscrição (NSI): linha e estado vazio filtrados por [hidden]; aceite e envio. */
.nsi-tabela tr[hidden],
.nsi-estado[hidden] {
  display: none;
}

.psg-aceite {
  margin-top: 1rem;
  font-weight: 600;
}

/* O CheckBox do ASP.NET renderiza input e label soltos; o gap separa o texto da caixa, que não pode encolher. */
.psg-aceite {
  align-items: flex-start;
  display: flex;
  gap: .75rem;
}

.psg-aceite input[type="checkbox"] {
  flex: none;
  margin: .2rem 0 0;
}

.psg-aceite label {
  cursor: pointer;
  margin: 0;
  min-width: 0;
  padding-left: 0;
}

/* E-mail longo no rodapé do menu do candidato quebra em até 2 linhas (o title traz o completo) em vez de passar por cima do Sair. */
.psg-candidate-shell .nsi-menu-rodape > div:not([popover]) > span {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* Menu de ações do ranking: o campo de motivo ocupa a largura do menu e o botão não cresce com o texto. */
.psg-ranking-menu {
  max-width: calc(100vw - 16px);
  width: 20rem;
}

.psg-ranking-menu .psg-ranking-motivo {
  padding: .2rem .4rem .4rem;
}

.psg-ranking-menu hr {
  border: 0;
  border-top: 1px solid var(--nsi-borda);
  margin: .3rem 0;
}

/* Estado carregando do histórico: o esqueleto substitui os painéis só enquanto o JS marca psg-carregando-oculto. */
.psg-carregando-oculto {
  display: none !important;
}

/* O atraso de 300 ms já é do JS (carregando-psg.js); sem isto o esqueleto esperaria mais 300 ms ao aparecer. */
#historicoCarregando .nsi-esqueleto {
  animation: none;
}

.nsi-painel-corpo.nsi-acoes-linha {
  justify-content: space-between;
  align-items: center;
}

/* Regra legada de parágrafo (Bootstrap/AdminBSB) alinha à esquerda o texto de apoio do estado vazio/erro. */
.nsi-estado p {
  text-align: center;
}

/* Aviso solto no topo da página não pode encostar no painel seguinte. */
.nsi-conteudo > .nsi-aviso,
.psg-candidate-content > .nsi-aviso {
  margin-bottom: 1rem;
}

/* Tabela em blocos: a faixa de ordenação do pacote usa margem de -.5rem nos botões, que invade o vizinho (gap menor). */
@container nsi-tabela not (min-width: 48rem) {
  .nsi-tabela-caixa .nsi-tabela-responsiva thead th .nsi-ordenar {
    margin: 0;
  }

  /* Rótulo e valor longos (e-mail, "Demanda/vaga") quebram dentro do bloco, sobretudo com a letra ampliada. */
  .nsi-tabela-caixa .nsi-tabela-responsiva td {
    overflow-wrap: anywhere;
  }

  /* A coluna do pacote (5rem) é menor que "Classificação": o rótulo quebra só entre palavras e a coluna comporta a maior. */
  .nsi-tabela-caixa .nsi-tabela-responsiva td[data-label] {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .nsi-tabela-caixa .nsi-tabela-responsiva td[data-label]::before {
    min-width: 0;
    overflow-wrap: normal;
  }
}

/* Linha de ações quebra em vez de empurrar botões para fora da tela (letra a 150%, 375 px). */
.nsi-acoes-linha {
  flex-wrap: wrap;
}

/* Valor só de leitura (Detalhes do candidato): campo de uma linha que cresce com o texto, em vez de cortá-lo. */
.nsi-campo textarea[readonly][rows="1"] {
  field-sizing: content;
  min-height: var(--nsi-alvo);
  padding: .7rem .9rem;
  resize: none;
  overflow: hidden;
  line-height: 1.4;
}

/* Login administrativo: composição A aprovada no protótipo, sem alterar o pacote NSI. */
.psg-acesso-administrativo .psg-acesso-pagina {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.psg-acesso-administrativo .psg-acesso-area {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem 2rem;
}

.psg-acesso-administrativo .psg-acesso-composicao {
  width: min(100%, 29rem);
  min-width: 0;
}

.psg-acesso-administrativo .psg-acesso-cartao {
  padding: 2rem 2.4rem;
  border: 1px solid var(--nsi-borda);
  border-radius: var(--nsi-raio);
  background: var(--nsi-superficie);
  box-shadow: var(--nsi-sombra);
}

.psg-acesso-administrativo .psg-acesso-marca {
  padding-bottom: 1.6rem;
}

.psg-acesso-administrativo .psg-acesso-logo {
  display: block;
  width: 15rem;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.nsi.psg-acesso-administrativo .psg-acesso-cartao h1 {
    overflow-wrap: anywhere;
  margin: 0 0 1.65rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--nsi-borda);
  color: var(--nsi-azul-800);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.035em;
}

.psg-acesso-administrativo .nsi-form {
  display: block;
}

/* ViewState e EventValidation geram contêineres extras; só os campos participam da grade. */
.psg-acesso-administrativo .psg-acesso-campos {
  display: grid;
  gap: 1.25rem;
}

.psg-acesso-administrativo .nsi-campo {
  margin: 0;
}

.psg-acesso-administrativo .nsi-campo label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 500;
}

.psg-acesso-administrativo .nsi-campo input {
  width: 100%;
  min-height: 3rem;
  background: var(--nsi-superficie);
}

.psg-acesso-administrativo .nsi-apoio {
  margin-top: .5rem;
  font-size: .85rem;
  line-height: 1.55;
}

.psg-acesso-administrativo .nsi-senha .nsi-btn-icone {
  min-width: 3rem;
  min-height: 3rem;
}

.psg-acesso-administrativo .psg-acesso-enviar {
  position: relative;
  margin-top: .15rem;
}

.psg-acesso-administrativo .psg-acesso-enviar .nsi-btn {
  width: 100%;
  min-height: 3.1rem;
  padding-inline: 2.5rem;
}

/* O asp:Button continua sendo o controle de postback; a seta é apenas decorativa. */
.psg-acesso-administrativo .psg-acesso-enviar > i {
  position: absolute;
  top: 50%;
  left: calc(50% + 2rem);
  transform: translateY(-50%);
  color: var(--nsi-sobre-cor);
  pointer-events: none;
}

.psg-acesso-administrativo .psg-acesso-enviar:has([aria-busy="true"]) > i {
  display: none;
}

.psg-acesso-administrativo .psg-acesso-ajuda {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 1.4rem 0 0;
  color: var(--nsi-texto-suave);
  font-size: .85rem;
  line-height: 1.7;
}

.psg-acesso-administrativo .psg-acesso-ajuda > i {
  flex: none;
  margin-top: .1rem;
  color: var(--nsi-azul);
  font-size: 1.4rem;
}

.psg-acesso-administrativo .psg-acesso-ajuda a,
.psg-acesso-administrativo .psg-acesso-retorno a {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  color: var(--nsi-azul);
  text-underline-offset: .2em;
}

.psg-acesso-administrativo .psg-acesso-retorno {
  margin-top: .8rem;
  text-align: center;
}

.psg-acesso-administrativo .psg-acesso-retorno a {
  gap: .5rem;
  font-size: .85rem;
}

.psg-acesso-administrativo .psg-acesso-rodape {
  padding: 1rem 1.25rem;
  color: var(--nsi-texto-suave);
  font-size: .75rem;
  text-align: center;
}

@media (max-width: 48rem) {
  .psg-acesso-administrativo .psg-acesso-area {
    padding-top: 1.5rem;
  }

  .psg-acesso-administrativo .psg-acesso-cartao {
    padding: 1.5rem;
  }
}
