:root {
  --blue: #0066CC;
  --blue-dark: #003D7A;
  --blue-hover: #0052A3;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --text: #111827;
  --muted: #6B7280;
  --orange: #FF9800;
  --green: #00A859;
  --red: #E11D48;
  --purple: #3387D7;
  --primary: #0066CC;
  --azul-prefeitura: #0066CC;
  --brand-50: #E6F0FA;
  --brand-100: #CCE1F5;
  --brand-200: #99C3EB;
  --brand-300: #66A5E1;
  --brand-400: #3387D7;
  --brand-500: #0066CC;
  --brand-600: #0052A3;
  --brand-700: #003D7A;
  --brand-800: #002952;
  --brand-900: #001429;
  --success-500: #00A859;
  --success-600: #008040;
  --warning-500: #FF9800;
  --warning-600: #E68900;
  --rose-500: #F43F5E;
  --rose-600: #E11D48;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  font-family: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, Arial, sans-serif;
  overflow: hidden;
}

body.public-validation-mode {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.public-validation-mode #app-root {
  min-height: 100vh;
  overflow: visible;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 82, 163, 0.34) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 102, 204, 0.42), rgba(0, 61, 122, 0.42));
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 102, 204, 0.68), rgba(0, 61, 122, 0.68));
  border: 2px solid transparent;
  background-clip: padding-box;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.is-hidden {
  display: none !important;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-screen {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(380px, 30vw, 430px) minmax(440px, 620px);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 82, 163, 0.16), transparent 32%),
    linear-gradient(135deg, #F9FAFB, #E6F0FA);
}

.login-showcase {
  width: 100%;
  height: calc(100vh - 48px);
  max-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 22px 28px 18px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(145deg, #0066CC 0%, var(--blue-dark) 72%);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 61, 122, 0.28);
}

.login-showcase::before,
.login-showcase::after {
  content: "";
  position: absolute;
  inset: 30px -80px auto 80px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(-12deg);
}

.login-showcase::after {
  inset: auto -70px 80px 190px;
  border-color: rgba(255, 152, 0, 0.26);
}

.login-showcase-main,
.login-city {
  position: relative;
  z-index: 1;
}

.login-pcd-logo {
  width: 160px;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  overflow: hidden;
  background: var(--white);
  border-radius: 50%;
}

.login-pcd-logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translateY(-10px) scale(1.08);
  transform-origin: center;
}

.login-showcase h1 {
  margin: 0;
  font-size: 3.75rem;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

.login-showcase h2 {
  max-width: 300px;
  margin: 5px auto 0;
  font-size: 1.62rem;
  line-height: 1.04;
  text-transform: uppercase;
}

.login-line {
  width: 170px;
  height: 3px;
  margin: 14px auto;
  background: var(--orange);
  border-radius: 999px;
}

.login-showcase p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.3;
}

.login-showcase strong {
  display: block;
  margin: 5px 0 8px;
  font-size: 1.2rem;
}

.login-city img {
  width: 160px;
  margin-bottom: 8px;
  filter: drop-shadow(0 12px 18px rgba(17, 24, 39, 0.22));
}

.login-city span {
  display: block;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.login-city b {
  display: block;
  text-transform: uppercase;
  font-size: 1.32rem;
  line-height: 1;
}

.login-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.login-card {
  width: 100%;
  max-height: calc(100vh - 70px);
  padding: 42px 48px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(204, 225, 245, 0.85);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.login-lock {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--blue);
  background: #E6F0FA;
  border-radius: 50%;
}

.login-card h3 {
  margin: 0;
  color: #003D7A;
  text-align: center;
  font-size: 2.35rem;
}

.login-card > p {
  margin: 10px 0 22px;
  color: var(--muted);
  text-align: center;
  font-size: 1.05rem;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #E11D48;
  background: #FFF1F2;
  border: 1px solid #FFF1F2;
  border-radius: 12px;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.field + .field {
  margin-top: 14px;
}

.field b {
  color: var(--red);
}

.input-shell {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #3387D7;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.input-shell:focus-within,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(0, 102, 204, 0.62);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.input-shell input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
}

.field textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #3387D7;
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.icon-button:hover {
  color: var(--blue);
  background: #E6F0FA;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  color: var(--muted);
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue-hover);
}

.login-options a {
  color: var(--blue-hover);
  font-weight: 800;
}

.login-help {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px -48px -42px;
  padding: 18px 48px;
  border-top: 1px solid var(--border);
}

.login-help .help-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue-hover);
  background: #E6F0FA;
  border-radius: 50%;
}

.login-help strong {
  display: block;
  color: var(--blue-hover);
}

.login-help p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-secure span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-secure i {
  width: 1px;
  height: 22px;
  background: #9CA3AF;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 900;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--blue-hover);
  box-shadow: 0 12px 26px rgba(0, 102, 204, 0.22);
}

.btn-primary:hover {
  background: var(--blue);
}

.btn-outline {
  color: var(--blue-hover);
  background: var(--white);
  border-color: #99C3EB;
}

.btn-outline:hover {
  background: #E6F0FA;
  border-color: var(--blue-hover);
}

.btn-muted {
  color: var(--text);
  background: var(--white);
  border-color: var(--border);
}

.btn-danger {
  color: #E11D48;
  background: #FFF1F2;
  border-color: #FFF1F2;
}

.btn-full {
  width: 100%;
  min-height: 52px;
}

.app-shell {
  width: 100%;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--bg);
}

.sidebar {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  color: var(--white);
  background: linear-gradient(180deg, #0052A3 0%, var(--blue-dark) 54%, #003D7A 100%);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  background: var(--white);
  border-radius: 14px;
}

.sidebar-brand strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 900;
}

.sidebar-brand span {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-link,
.nav-parent {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-weight: 850;
  text-align: left;
}

.nav-link span,
.nav-parent span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link:hover,
.nav-parent:hover,
.nav-link.active {
  color: var(--white);
  background: linear-gradient(90deg, #3387D7, #0052A3);
}

.nav-sub {
  display: grid;
  gap: 6px;
  padding: 5px 0 8px 34px;
}

.nav-sub .nav-link {
  min-height: 36px;
  font-size: 0.88rem;
}

.app-main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 41, 82, 0.06);
}

.menu-toggle,
.notification-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 10px;
}

.menu-toggle:hover,
.notification-button:hover {
  background: #E6F0FA;
  border-color: #CCE1F5;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.breadcrumb a {
  color: var(--blue-hover);
}

.breadcrumb span {
  white-space: nowrap;
}

.topbar-title {
  font-size: 1.3rem;
  font-weight: 900;
}

.topbar-spacer {
  flex: 1;
}

.notification-button {
  position: relative;
  color: #003D7A;
}

.notification-button b {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--white);
  border-radius: 999px;
  font-size: 0.65rem;
}

.profile {
  position: relative;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.profile-button:hover {
  background: #F9FAFB;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #E6F0FA;
  border-radius: 50%;
}

.profile-button strong,
.profile-button span {
  display: block;
  text-align: left;
  white-space: nowrap;
}

.profile-button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.profile-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

.profile-menu button:hover {
  background: #F9FAFB;
}

.view {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.page-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue-hover);
  background: #E6F0FA;
  border-radius: 14px;
}

.page-heading h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}

.card,
.table-card,
.form-card,
.side-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.card,
.form-card,
.side-card {
  padding: 18px;
}

.card h2,
.form-card h2,
.side-card h2,
.table-card h2 {
  margin: 0;
  font-size: 1.08rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 120px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--blue-hover);
  background: #E6F0FA;
  border-radius: 14px;
}

.stat-card span,
.stat-card strong,
.stat-card small {
  display: block;
}

.stat-card span {
  font-weight: 850;
}

.stat-card strong {
  margin-top: 7px;
  font-size: 1.8rem;
  line-height: 1;
}

.stat-card small {
  margin-top: 7px;
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.donut-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.donut {
  width: 148px;
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(#3387D7 0 36%, #00A859 36% 64%, #66A5E1 64% 82%, #66A5E1 82% 95%, #F43F5E 95% 100%);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 42px;
  background: var(--white);
  border-radius: 50%;
}

.legend {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: #374151;
  font-size: 0.82rem;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.bar-chart {
  height: 230px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
  margin-top: 22px;
  padding: 0 8px 30px;
  background: repeating-linear-gradient(to top, transparent 0, transparent 38px, #CCE1F5 39px);
}

.bar-chart div {
  position: relative;
  height: var(--h);
  background: linear-gradient(180deg, #3387D7, #0052A3);
  border-radius: 7px 7px 0 0;
}

.bar-chart span {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  color: #374151;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.toolbar .field,
.toolbar-search {
  flex: 1 1 360px;
  gap: 0;
}

.toolbar-search input {
  min-height: 42px;
  border-radius: 12px;
}

.toolbar-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}

.filter-select {
  position: relative;
  width: clamp(158px, 14vw, 220px);
  min-width: 0;
  z-index: 15;
}

.filter-select-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 0 14px;
  color: #003D7A;
  background: linear-gradient(180deg, #FFFFFF, #F9FAFB);
  border: 1px solid #CCE1F5;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 61, 122, 0.06);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.filter-select-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-select-button .icon {
  width: 16px;
  height: 16px;
  color: #0052A3;
  transition: transform 160ms ease;
}

.filter-select-button:hover,
.filter-select.open .filter-select-button {
  border-color: #99C3EB;
  background: #E6F0FA;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08), 0 10px 24px rgba(0, 61, 122, 0.08);
}

.filter-select.open .filter-select-button .icon {
  transform: rotate(180deg);
}

.filter-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max(100%, 250px);
  max-height: 290px;
  display: grid;
  gap: 3px;
  padding: 7px;
  overflow: auto;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  color: #003D7A;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(0, 61, 122, 0.18);
  transition: opacity 150ms ease, transform 150ms ease;
}

.filter-select.open .filter-select-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.filter-select-menu button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 11px;
  padding: 0 11px;
  color: #374151;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.filter-select-menu button:hover {
  color: #0066CC;
  background: #E6F0FA;
}

.filter-select-menu button.active {
  color: #0066CC;
  background: #E6F0FA;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .toolbar {
    flex-wrap: wrap;
  }

  .toolbar-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .filter-select {
    flex: 1 1 180px;
    width: auto;
  }
}

.table-card {
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
}

.table-header span {
  color: var(--muted);
  font-weight: 850;
}

.table-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-right: 1px solid #CCE1F5;
  border-bottom: 1px solid #CCE1F5;
  font-size: 0.82rem;
  text-align: left;
  vertical-align: middle;
}

th:last-child,
td:last-child {
  border-right: 0;
}

thead th {
  background: #E6F0FA;
  font-weight: 900;
}

tbody tr:hover td {
  background: #F9FAFB;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.actions .btn {
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.78rem;
  box-shadow: none;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-rascunho,
.status-cadastro-realizado {
  color: #374151;
  background: #E6F0FA;
}

.status-em-analise,
.status-em-triagem,
.status-protocolo-gerado {
  color: #E68900;
  background: #FFF4DA;
}

.status-encaminhado-ao-cras,
.status-compareceu-ao-cras,
.status-em-analise-semasc,
.status-enviada-ao-cras {
  color: #0066CC;
  background: #E6F0FA;
}

.status-aprovado,
.status-entregue {
  color: #008040;
  background: #ECFDF3;
}

.status-reprovado,
.status-indeferido,
.status-cancelado {
  color: #E11D48;
  background: #FFF1F2;
}

.status-pendencia {
  color: #E68900;
  background: #FFF4DA;
}

.status-carteirinha-gerada {
  color: #003D7A;
  background: #E6F0FA;
}

.status-disponivel-no-cras,
.status-disponivel-para-entrega {
  color: #0052A3;
  background: #CCE1F5;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.form-stack,
.side-stack {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 18px;
}

.span-2 {
  grid-column: span 2;
}

.span-4 {
  grid-column: span 4;
}

.form-card h2 span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  color: var(--white);
  background: var(--blue-hover);
  border-radius: 50%;
  font-size: 0.82rem;
}

.upload-box {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  border: 1.5px dashed #99C3EB;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
}

.upload-box img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
}

.form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 -28px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(204, 225, 245, 0.9);
  backdrop-filter: blur(8px);
}

.field-error,
.field-error input,
.field-error select,
.field-error textarea,
.field-error .input-shell {
  border-color: var(--red) !important;
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue-hover);
  border-radius: 50%;
}

.entity-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.entity-card {
  display: grid;
  gap: 12px;
}

.entity-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.entity-numbers span {
  padding: 10px;
  text-align: center;
  color: var(--muted);
  background: #F9FAFB;
  border: 1px solid #CCE1F5;
  border-radius: 10px;
  font-size: 0.8rem;
}

.entity-numbers b {
  display: block;
  color: var(--blue);
  font-size: 1.15rem;
}

.generate-layout,
.card-generation {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.approved-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 300px);
  min-height: 220px;
  margin-top: 14px;
  padding-right: 4px;
  overflow-y: auto;
  overflow-x: hidden;
}

.approved-list button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #E6F0FA;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.approved-list button.active,
.approved-list button:hover {
  border-color: var(--blue-hover);
  background: #E6F0FA;
}

.approved-list strong,
.approved-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approved-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.approved-meta {
  display: grid;
  gap: 3px;
}

.approved-meta small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.preview-card h2 {
  margin: 0 0 18px;
  font-size: 1.08rem;
}

.card-preview-wrapper {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  overflow: hidden;
}

.card-scale {
  width: 431px;
  height: 646px;
  margin: 0 auto;
}

.card-template,
.card-preview {
  width: 1024px;
  height: 1536px;
  position: relative;
  transform: scale(0.42);
  transform-origin: top left;
  background:
    radial-gradient(circle at 93% 43%, rgba(13, 92, 192, 0.055), transparent 28%),
    radial-gradient(circle at 8% 78%, rgba(13, 92, 192, 0.045), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f8fbff 48%, #ffffff 100%);
  border: 13px solid #072c68;
  border-radius: 44px;
  overflow: hidden;
}

.card-template::before,
.card-template::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.card-template::before {
  inset: 12px;
  border: 1px solid rgba(13, 92, 192, 0.14);
  border-radius: 30px;
}

.card-template::after {
  top: 210px;
  right: -18px;
  width: 18px;
  height: 1130px;
  background: linear-gradient(180deg, transparent, rgba(212, 167, 60, 0.86) 22%, rgba(212, 167, 60, 0.42) 78%, transparent);
  border-radius: 999px;
}

.card-watermark {
  position: absolute;
  right: 26px;
  bottom: 102px;
  width: 430px;
  height: 430px;
  overflow: hidden;
  opacity: 0.028;
  border-radius: 50%;
  pointer-events: none;
}

.card-watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.22);
  filter: grayscale(1) saturate(0.2) contrast(1.1);
}

.card-doc-header {
  position: absolute;
  top: 46px;
  left: 58px;
  right: 58px;
  height: 170px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.card-pcd-lockup {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  color: #073c91;
  text-transform: uppercase;
}

.card-pcd-lockup strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 78px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -1px;
}

.card-pcd-lockup small {
  display: block;
  margin-top: 12px;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.08;
}

.card-pcd-seal {
  width: 148px;
  height: 148px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
}

.card-pcd-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.26);
}

.card-doc-header i {
  width: 1px;
  height: 116px;
  background: linear-gradient(180deg, transparent, rgba(15, 35, 70, 0.44), transparent);
}

.card-city-brand {
  width: 340px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  justify-self: center;
  color: #111827;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
}

.card-city-brand img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  image-rendering: auto;
}

.card-city-brand small,
.card-city-brand strong,
.card-city-brand em {
  display: block;
}

.card-city-brand small {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.38em;
}

.card-city-brand strong {
  color: #101010;
  font-size: 44px;
  font-weight: 900;
  line-height: 0.86;
}

.card-city-brand em {
  margin-top: 11px;
  color: #1f2937;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card-title-band {
  position: absolute;
  top: 242px;
  left: 58px;
  right: 58px;
  height: 96px;
  display: grid;
  place-items: center;
  padding: 0 56px;
  color: #ffffff;
  background: linear-gradient(135deg, #073c91, #0057d9 58%, #083779);
  border-radius: 16px;
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.card-document-lines span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 167, 60, 0.42) 8%, rgba(212, 167, 60, 0.42) 92%, transparent);
}

.card-photo {
  position: absolute;
  object-fit: cover;
  border: 2px solid #0c3093;
  border-radius: 14px;
  background: #e8eef8;
}

.card-photo-placeholder {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #eef4fb;
  border: 2px dashed #9fb4cf;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
}

.card-field {
  position: absolute;
  display: grid;
  align-content: start;
  gap: 5px;
  color: #101828;
  font-family: Arial, sans-serif;
  line-height: 1.08;
  overflow: hidden;
  text-transform: uppercase;
}

.card-field::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 167, 60, 0.36), rgba(212, 167, 60, 0.16));
}

.card-label {
  display: block;
  color: #073c91;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.card-value {
  display: block;
  overflow: hidden;
  color: #111827;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-name {
  gap: 10px;
}

.card-name .card-value {
  font-size: 24px;
  font-weight: 900;
}

.card-name.is-long .card-value {
  font-size: 21px;
}

.card-disability .card-value,
.card-cpf .card-value,
.card-rg .card-value,
.card-birth .card-value,
.card-naturalness .card-value,
.card-number .card-value,
.card-issue .card-value,
.card-validity .card-value {
  font-size: 20px;
  font-weight: 900;
}

.card-mother .card-value,
.card-father .card-value,
.card-sus .card-value,
.card-blood .card-value,
.card-contact .card-value,
.card-companion .card-value,
.card-mobility .card-value,
.card-wheelchair .card-value,
.card-cras .card-value {
  font-size: 18px;
  font-weight: 900;
}

.card-address .card-value {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.18;
  white-space: pre-line;
  text-overflow: clip;
}

.card-number,
.card-issue,
.card-validity,
.card-cras {
  padding-inline: 12px;
}

.card-number::before,
.card-issue::before,
.card-validity::before,
.card-cras::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: rgba(7, 60, 145, 0.36);
}

.card-law-note {
  position: absolute;
  left: 74px;
  right: 74px;
  bottom: 28px;
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding-left: 72px;
  color: #ffffff;
  background: linear-gradient(135deg, #073c91, #0057d9);
  border-radius: 14px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
}

.card-law-note::before {
  content: "✓";
  position: absolute;
  top: 18px;
  left: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.card-law-note strong,
.card-law-note span {
  display: block;
}

.card-law-note strong {
  font-size: 17px;
}

.card-law-note span {
  font-size: 13px;
  line-height: 1.25;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.batch-print-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
}

.batch-print-copy {
  min-width: 0;
}

.batch-print-copy h2 {
  margin: 4px 0 4px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.batch-print-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.batch-print-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.communication-flow-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.communication-flow-summary span {
  display: inline-grid;
  grid-template-areas:
    "icon number"
    "icon label";
  grid-template-columns: 18px auto;
  align-items: center;
  min-width: 130px;
  gap: 0 8px;
  padding: 8px 10px;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
  background: #F7FBFF;
}

.communication-flow-summary .icon {
  grid-area: icon;
  width: 18px;
  height: 18px;
}

.communication-flow-summary strong {
  grid-area: number;
  color: #003D7A;
  font-size: 16px;
}

.communication-flow-summary small {
  grid-area: label;
  color: #5D7285;
  font-size: 11px;
  font-weight: 700;
}

.communication-flow-summary .is-print {
  border-color: #B7D7F4;
  background: #EEF7FF;
  color: #0052A3;
}

.communication-flow-summary .is-waiting {
  border-color: #FFE0A3;
  background: #FFF8E8;
  color: #A86400;
}

.communication-flow-summary .is-sent {
  border-color: #BAE7D0;
  background: #ECFDF3;
  color: #008040;
}

.card-communication-status {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.communication-stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.communication-stage-badge .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.communication-stage-badge.is-print {
  border-color: #B7D7F4;
  background: #EEF7FF;
  color: #0052A3;
}

.communication-stage-badge.is-printed {
  border-color: #FFE0A3;
  background: #FFF8E8;
  color: #A86400;
}

.communication-stage-badge.is-sent {
  border-color: #BAE7D0;
  background: #ECFDF3;
  color: #008040;
}

.communication-stage-badge.is-ready {
  border-color: #CCE1F5;
  background: #F7FBFF;
  color: #003D7A;
}

.communication-stage-badge.is-delivered {
  border-color: #BAE7D0;
  background: #ECFDF3;
  color: #008040;
}

@media (max-width: 720px) {
  .batch-print-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .batch-print-actions {
    justify-content: stretch;
  }

  .batch-print-actions .btn {
    flex: 1 1 160px;
  }

  .communication-flow-summary span {
    flex: 1 1 130px;
  }
}

.modal .preview-card {
  box-shadow: none;
}

.card-duplex-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.card-face-preview {
  min-width: 0;
}

.card-face-preview > span {
  display: block;
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.card-front-template {
  background:
    radial-gradient(circle at 95% 44%, rgba(13, 92, 192, 0.05), transparent 26%),
    radial-gradient(circle at 8% 78%, rgba(13, 92, 192, 0.045), transparent 25%),
    linear-gradient(180deg, #fbfdff 0%, #f6faff 46%, #ffffff 100%);
  border: 12px solid #072c68;
  border-radius: 34px;
  box-shadow: none;
}

.card-front-template::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  border: 1px solid rgba(13, 92, 192, 0.12);
  border-radius: 22px;
  pointer-events: none;
}

.card-front-template::after {
  content: "";
  position: absolute;
  top: 215px;
  right: -5px;
  z-index: 0;
  width: 10px;
  height: 1120px;
  background: linear-gradient(180deg, transparent, rgba(212, 167, 60, 0.78) 18%, rgba(212, 167, 60, 0.42) 78%, transparent);
  border-radius: 999px;
  pointer-events: none;
}

.card-back-template {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.card-back-model-bg {
  object-fit: cover;
  object-position: center;
}

.card-back-template::before,
.card-back-template::after {
  content: none;
}

.card-model-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.card-back-panel {
  position: absolute;
  inset: 24px;
  z-index: 0;
  background:
    radial-gradient(circle at 52% 50%, rgba(17, 111, 235, 0.94), rgba(3, 83, 204, 0.96) 34%, rgba(0, 55, 155, 0.98) 68%, #002c79 100%),
    linear-gradient(135deg, #002a75 0%, #0b62d9 50%, #002b75 100%);
  border-radius: 48px;
  box-shadow:
    inset 0 0 110px rgba(255, 255, 255, 0.1),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.card-back-panel-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.card-back-city-logo {
  position: absolute;
  top: 178px;
  left: 166px;
  z-index: 2;
  width: 692px;
  height: auto;
  filter: none;
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

.card-back-watermark-logo {
  position: absolute;
  top: 500px;
  left: 32px;
  z-index: 1;
  width: 960px;
  height: 960px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.105);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 9;
  pointer-events: none;
}

.card-back-pcd-logo {
  position: absolute;
  top: 610px;
  left: 222px;
  z-index: 2;
  width: 580px;
  height: 580px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  pointer-events: none;
  filter: none;
}

.card-back-pcd-image {
  position: absolute;
  top: 642px;
  left: 244px;
  z-index: 2;
  width: 536px;
  height: auto;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.card-back-secretaries {
  position: absolute;
  right: 64px;
  bottom: 44px;
  left: 64px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 74px;
  padding-top: 18px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.22;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.card-back-secretaries span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
}

.card-back-secretaries span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.58);
}

.card-back-pcd-logo .pcd-orbit {
  fill: none;
  stroke-linecap: round;
  stroke-width: 4;
}

.card-back-pcd-logo .pcd-disc-shadow {
  fill: #ffffff;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 2;
}

.card-back-pcd-logo .orbit-blue {
  stroke: #2b78e4;
}

.card-back-pcd-logo .orbit-gold {
  stroke: #f4bd33;
}

.card-back-pcd-logo .orbit-top {
  stroke-width: 3.5;
}

.card-back-pcd-logo .orbit-bottom {
  stroke-width: 4.2;
}

.card-back-pcd-logo .pcd-main-stroke {
  fill: none;
  stroke: #050505;
  stroke-width: 7.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-back-pcd-logo .pcd-node {
  fill: #16bfe4;
  stroke: #050505;
  stroke-width: 7;
}

.card-clean-watermark {
  position: absolute;
  right: 50px;
  bottom: 158px;
  z-index: 0;
  width: 330px;
  height: 330px;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.045;
}

.card-clean-watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.24);
  filter: grayscale(1) saturate(0.2) contrast(1.1);
}

.card-clean-header {
  position: absolute;
  top: 42px;
  left: 66px;
  right: 66px;
  z-index: 2;
  height: 168px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.card-clean-pcd {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  color: #073c91;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.card-clean-seal {
  width: 140px;
  height: 140px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

.card-clean-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.25);
}

.card-clean-pcd strong {
  display: block;
  font-size: 70px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -1px;
}

.card-clean-pcd small {
  display: block;
  margin-top: 12px;
  max-width: 260px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.08;
}

.card-clean-header i {
  width: 1px;
  height: 122px;
  background: linear-gradient(180deg, transparent, rgba(15, 35, 70, 0.42), transparent);
}

.card-clean-city-wrap {
  width: 360px;
  max-height: 126px;
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
}

.card-clean-city-wrap::after {
  content: "";
  position: absolute;
  inset: 18px 4px 14px;
  z-index: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(7, 60, 145, 0.14), rgba(0, 102, 204, 0.07));
  border: 1px solid rgba(7, 60, 145, 0.12);
  box-shadow: 0 8px 18px rgba(7, 60, 145, 0.08);
  pointer-events: none;
}

.card-clean-city-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  background: url("../assets/belfordroxologo.png") center / contain no-repeat;
  filter: brightness(0) saturate(100%) invert(17%) sepia(44%) saturate(1780%) hue-rotate(190deg) brightness(82%) contrast(98%);
  opacity: 0.28;
  transform: translate(1px, 1px);
  pointer-events: none;
}

.card-clean-city {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 126px;
  object-fit: contain;
  opacity: 1;
  filter:
    contrast(1.22)
    saturate(1.12)
    drop-shadow(0 0 1px rgba(7, 44, 104, 0.72))
    drop-shadow(0 2px 4px rgba(7, 44, 104, 0.16));
}

.card-clean-title {
  position: absolute;
  top: 244px;
  left: 58px;
  right: 58px;
  z-index: 2;
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 0 56px;
  color: #fff;
  background: linear-gradient(135deg, #073c91 0%, #0754c8 58%, #083779 100%);
  border-radius: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.22;
  text-align: center;
  text-transform: uppercase;
}

.card-clean-lines span {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 167, 60, 0.46), rgba(212, 167, 60, 0.13));
}

.card-front-template .card-photo,
.card-front-template .card-photo-placeholder {
  z-index: 2;
}

.card-front-template .card-photo {
  object-fit: cover;
  border: 2px solid #0c3093;
  border-radius: 14px;
  background: #e8eef8;
}

.card-front-template .card-photo-placeholder {
  background: #edf4fb;
  border: 2px dashed #9fb8d8;
  border-radius: 14px;
  color: #6b7b91;
  font-size: 18px;
}

.card-data-field {
  position: absolute;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow: hidden;
  padding: 0 4px;
  color: #080d18;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.card-data-field span {
  display: block;
  color: #073c91;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.card-data-field strong {
  display: block;
  overflow: hidden;
  color: #080d18;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-name-value strong {
  font-size: 27px;
  letter-spacing: -0.01em;
}

.card-name-value.is-long strong {
  font-size: 22px;
  white-space: normal;
}

.card-wide-value strong {
  font-size: 25px;
}

.card-small-value strong {
  font-size: 19px;
}

.card-address-value strong {
  display: -webkit-box;
  font-size: 18px;
  line-height: 1.16;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-contact-value strong,
.card-cras-value strong {
  font-size: 18px;
}

.card-bottom-strip {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 236px;
  z-index: 1;
  height: 96px;
  border-top: 1px solid rgba(212, 167, 60, 0.34);
  border-bottom: 1px solid rgba(212, 167, 60, 0.18);
}

.card-bottom-value {
  text-align: left;
}

.card-bottom-value strong {
  font-size: 20px;
}

.card-law-block {
  position: absolute;
  left: 58px;
  bottom: 96px;
  z-index: 2;
  width: 328px;
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 2px 14px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, #073c91, #0057d9);
  border-radius: 12px;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.card-law-block span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.card-law-block strong {
  font-size: 16px;
  line-height: 1;
}

.card-law-block small {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.12;
}

.card-qr-overlay {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 5px;
  background: #fff;
  border-radius: 4px;
}

.card-qr-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-signature-block {
  position: absolute;
  right: 72px;
  bottom: 108px;
  z-index: 2;
  width: 300px;
  min-height: 86px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #073c91;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.card-signature-block span {
  display: block;
  margin-bottom: -2px;
  color: #1f2937;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 39px;
  line-height: 1;
  transform: rotate(-3deg);
}

.card-signature-block::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 30px;
  right: 30px;
  height: 1px;
  background: rgba(7, 60, 145, 0.48);
}

.card-signature-block strong {
  max-width: 250px;
  font-size: 10px;
  line-height: 1.12;
  text-transform: uppercase;
}

.card-clean-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 70px;
  color: #fff;
  background: linear-gradient(135deg, #073c91, #0057d9);
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.card-clean-footer span,
.card-clean-footer strong {
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .card-duplex-preview {
    grid-template-columns: 1fr;
  }
}

.delivery-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
}

details {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

#toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 41, 82, 0.18);
}

.toast.error {
  border-left-color: var(--red);
}

.toast strong {
  display: block;
}

.toast p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 41, 82, 0.52);
}

.modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  padding: 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 41, 82, 0.28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.detail-grid div {
  padding: 12px;
  background: #F9FAFB;
  border: 1px solid #CCE1F5;
  border-radius: 10px;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.detail-grid dd {
  margin: 5px 0 0;
  font-weight: 850;
}

.loading {
  pointer-events: none;
  opacity: 0.75;
}

/* Sidebar and profile dropdown polish */
.sidebar {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  background: linear-gradient(180deg, #0066CC 0%, #003D7A 45%, #003D7A 100%);
  transition: width 0.25s ease, min-width 0.25s ease, max-width 0.25s ease;
}

.sidebar-brand {
  min-height: 88px;
  padding: 18px 16px;
}

.sidebar-brand img {
  width: 54px;
  height: 54px;
}

.sidebar-brand div {
  min-width: 0;
}

.sidebar-brand strong,
.sidebar-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-scroll {
  padding: 14px 16px 10px;
}

.nav {
  gap: 6px;
}

.nav-title {
  margin: 18px 12px 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-link,
.nav-link,
.nav-parent {
  position: relative;
  min-height: 46px;
  gap: 12px;
  padding: 0 14px;
  color: #FFFFFF;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sidebar-link:hover,
.nav-link:hover,
.nav-parent:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-link.active,
.nav-link.active {
  background: #0052A3;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.nav-parent .icon:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

.nav-sub {
  gap: 5px;
  padding: 6px 0 8px 38px;
}

.nav-sub .nav-link {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 650;
}

.sidebar.collapsed {
  width: 84px;
  min-width: 84px;
  max-width: 84px;
  overflow: visible;
}

.sidebar.collapsed .sidebar-scroll {
  overflow: visible;
  padding: 14px 12px;
}

.sidebar.collapsed .sidebar-brand {
  justify-content: center;
  padding-inline: 12px;
}

.sidebar.collapsed .sidebar-brand div,
.sidebar.collapsed .nav-title,
.sidebar.collapsed .sidebar-link span,
.sidebar.collapsed .nav-parent span,
.sidebar.collapsed .nav-parent .icon:last-child {
  display: none;
}

.sidebar.collapsed .nav-sub {
  padding-left: 0;
}

.sidebar.collapsed .sidebar-link,
.sidebar.collapsed .nav-link,
.sidebar.collapsed .nav-parent {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed .sidebar-link:hover::after,
.sidebar.collapsed .nav-parent:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  z-index: 120;
  min-width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  color: #FFFFFF;
  background: #111827;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 41, 82, 0.24);
  font-size: 0.78rem;
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}

.sidebar-overlay {
  display: none;
}

.profile-button {
  min-width: 196px;
}

.profile-chevron {
  display: grid;
  place-items: center;
  transition: transform 0.18s ease;
}

.profile-button.open .profile-chevron {
  transform: rotate(180deg);
}

.profile-menu {
  top: calc(100% + 10px);
  width: 260px;
  padding: 10px;
  border-radius: 14px;
  z-index: 110;
  box-shadow: 0 18px 40px rgba(0, 41, 82, 0.16);
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.profile-menu-header strong,
.profile-menu-header span {
  display: block;
}

.profile-menu-header span {
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-menu-header .avatar {
  display: grid;
  color: var(--blue);
  font-size: 1rem;
}

.profile-menu button {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
}

.profile-menu button:hover {
  color: var(--blue);
  background: #E6F0FA;
}

/* Modern scrollbars and sidebar accordion */
.sidebar,
.sidebar-scroll,
.app-main,
.table-scroll,
.approved-list,
.modal {
  scrollbar-gutter: stable;
}

.sidebar,
.sidebar-scroll {
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.sidebar::-webkit-scrollbar,
.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.42);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.sidebar-toggle {
  cursor: pointer;
}

.sidebar-toggle-arrow {
  display: grid;
  place-items: center;
  margin-left: auto;
  transition: transform 0.22s ease;
}

.sidebar-toggle-arrow .icon {
  width: 16px;
  height: 16px;
}

.sidebar-group.is-open .sidebar-toggle-arrow {
  transform: rotate(90deg);
}

.sidebar-submenu,
.nav-sub {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.24s ease, opacity 0.18s ease, padding 0.24s ease;
}

.sidebar-group.is-open .sidebar-submenu,
.sidebar-group.is-open .nav-sub {
  max-height: 140px;
  opacity: 1;
  padding-top: 6px;
  padding-bottom: 8px;
}

.sidebar.collapsed .sidebar-submenu,
.sidebar.collapsed .nav-sub {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.sidebar.collapsed .sidebar-toggle-arrow {
  display: none;
}

/* Typography and radius system */
:root {
  font-family: Inter, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, sans-serif;
}

body {
  font-weight: 400;
  letter-spacing: 0;
}

.page-heading h1,
.login-card h3 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.page-heading p,
.login-card > p {
  color: #6B7280;
  font-size: 16px;
  font-weight: 400;
}

.sidebar-link,
.nav-link,
.nav-parent {
  font-size: 15px;
  font-weight: 500;
}

.sidebar-link.active,
.nav-link.active {
  font-weight: 600;
}

.nav-sub .nav-link.active {
  font-weight: 600;
}

.nav-sub .nav-link {
  font-weight: 500;
}

.sidebar-brand strong {
  font-weight: 700;
}

.sidebar-brand span {
  font-weight: 400;
}

.topbar-title {
  font-weight: 600;
}

.breadcrumb {
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb span {
  font-weight: 600;
}

.field {
  font-size: 14px;
  font-weight: 500;
}

.field b {
  font-weight: 600;
}

.field input,
.field select,
.field textarea,
.input-shell input {
  font-size: 15px;
  font-weight: 400;
}

input::placeholder,
textarea::placeholder {
  color: #6B7280;
  font-size: 15px;
  font-weight: 400;
}

.card h2,
.form-card h2,
.side-card h2,
.table-card h2,
.preview-card h2,
.modal h2 {
  font-weight: 600;
}

.stat-card span {
  font-weight: 500;
}

.stat-card strong {
  font-size: 34px;
  font-weight: 700;
}

.stat-card small {
  font-size: 14px;
  font-weight: 400;
}

.legend,
.table-card,
.approved-list,
.detail-grid,
.timeline,
.entity-card,
.report-card,
.help-grid {
  font-weight: 400;
}

.table-card th,
.status-pill,
.approved-list strong,
.profile-button strong,
.profile-menu-header strong,
.profile-menu button,
.btn {
  font-weight: 600;
}

.table-card td,
.profile-button span,
.profile-menu-header span,
.approved-list span,
.detail-grid dt,
.detail-grid dd {
  font-weight: 400;
}

.card,
.table-card,
.form-card,
.side-card,
.stat-card,
.preview-card,
.entity-card,
.report-card,
.cras-card,
.side-card,
.login-alert,
.toast {
  border-radius: 16px;
}

.field input,
.field select,
.field textarea,
.input-shell,
.upload-box,
.profile-button,
.profile-menu button,
.menu-toggle,
.notification-button,
.icon-button,
.btn {
  border-radius: 12px;
}

.modal {
  border-radius: 20px;
}

/* Desktop density tuning */
.sidebar {
  width: 236px;
  min-width: 236px;
  max-width: 236px;
}

.sidebar-brand {
  min-height: 76px;
  gap: 10px;
  padding: 14px 13px;
}

.sidebar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.sidebar-brand strong {
  font-size: 1.18rem;
}

.sidebar-brand span {
  margin-top: 3px;
  font-size: 0.7rem;
  line-height: 1.2;
}

.sidebar-scroll {
  padding: 10px 12px 8px;
}

.nav {
  gap: 4px;
}

.nav-title {
  margin: 13px 10px 6px;
  font-size: 10px;
}

.sidebar-link,
.nav-link,
.nav-parent {
  min-height: 39px;
  gap: 9px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
}

.sidebar-link .icon,
.nav-link .icon,
.nav-parent .icon {
  width: 18px;
  height: 18px;
}

.nav-parent .icon:last-child {
  width: 14px;
  height: 14px;
}

.nav-sub {
  gap: 3px;
  padding: 4px 0 6px 30px;
}

.nav-sub .nav-link {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12.5px;
}

.sidebar.collapsed {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
}

.sidebar.collapsed .sidebar-scroll {
  padding: 10px 8px;
}

.sidebar.collapsed .sidebar-brand {
  padding-inline: 8px;
}

.sidebar.collapsed .sidebar-link,
.sidebar.collapsed .nav-link,
.sidebar.collapsed .nav-parent {
  min-height: 40px;
}

.topbar {
  height: 60px;
  min-height: 60px;
  gap: 14px;
  padding: 0 20px;
}

.menu-toggle,
.notification-button {
  width: 36px;
  height: 36px;
}

.avatar {
  width: 36px;
  height: 36px;
}

.profile-button {
  gap: 8px;
  padding: 5px 7px;
}

.profile-button strong {
  font-size: 13px;
}

.profile-button span {
  font-size: 11px;
}

.topbar-title {
  font-size: 1.08rem;
}

.breadcrumb {
  gap: 8px;
  font-size: 13px;
}

.view {
  max-width: none;
  padding: 18px 22px 28px;
}

.page-heading {
  gap: 12px;
  margin-bottom: 14px;
}

.page-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.page-heading h1,
.login-card h3 {
  font-size: 34px;
  line-height: 1.06;
}

.page-heading p,
.login-card > p {
  margin-top: 5px;
  font-size: 14px;
}

.card,
.form-card,
.side-card {
  padding: 14px;
}

.card h2,
.form-card h2,
.side-card h2,
.table-card h2,
.preview-card h2 {
  font-size: 1rem;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  min-height: 86px;
  padding: 13px;
  border-radius: 14px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.stat-icon .icon {
  width: 19px;
  height: 19px;
}

.stat-card span {
  font-size: 12.5px;
}

.stat-card strong {
  margin-top: 4px;
  font-size: 28px;
}

.stat-card small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.25;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.donut-layout {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.donut {
  width: 118px;
}

.donut::after {
  inset: 34px;
}

.legend {
  gap: 7px;
}

.legend li {
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  font-size: 12px;
}

.legend i {
  width: 10px;
  height: 10px;
}

.bar-chart {
  height: 178px;
  gap: 14px;
  margin-top: 14px;
  padding: 0 6px 26px;
  background: repeating-linear-gradient(to top, transparent 0, transparent 31px, #CCE1F5 32px);
}

.bar-chart span {
  bottom: -21px;
  font-size: 11px;
}

.toolbar {
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 14px;
}

.toolbar select {
  max-width: 190px;
}

.field {
  gap: 6px;
  font-size: 13px;
}

.field + .field {
  margin-top: 10px;
}

.field input,
.field select,
.field textarea,
.input-shell {
  min-height: 40px;
  border-radius: 10px;
}

.input-shell {
  gap: 9px;
  padding: 0 12px;
}

.input-shell input {
  height: 38px;
}

.field input,
.field select,
.field textarea,
.input-shell input {
  font-size: 14px;
}

input::placeholder,
textarea::placeholder {
  font-size: 14px;
}

.btn {
  min-height: 38px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.table-header {
  gap: 12px;
  padding: 12px 14px;
}

.table-header span {
  font-size: 12.5px;
}

th,
td {
  padding: 8px 9px;
  font-size: 12px;
}

.actions {
  gap: 5px;
}

.actions .btn {
  min-height: 27px;
  padding: 0 8px;
  font-size: 11.5px;
}

.status {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11px;
}

.form-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.form-stack,
.side-stack {
  gap: 12px;
}

.form-grid {
  gap: 12px 14px;
}

.form-card h2 span {
  width: 23px;
  height: 23px;
  margin-right: 7px;
  font-size: 12px;
}

.upload-box {
  min-height: 170px;
  padding: 14px;
}

.form-actions {
  gap: 10px;
  margin: 0 -22px;
  padding: 12px 22px;
}

.timeline {
  gap: 12px;
  margin-top: 12px;
}

.timeline li {
  grid-template-columns: 26px 1fr;
  gap: 10px;
}

.timeline b {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.entity-grid,
.report-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 12px;
}

.entity-card {
  gap: 9px;
}

.entity-card p {
  margin: 0;
  font-size: 13px;
}

.entity-numbers {
  gap: 8px;
}

.entity-numbers span {
  padding: 8px;
  border-radius: 9px;
  font-size: 12px;
}

.entity-numbers b {
  font-size: 1rem;
}

.generate-layout,
.card-generation {
  grid-template-columns: minmax(280px, 310px) minmax(0, 1fr);
  gap: 14px;
}

.approved-list {
  gap: 8px;
  max-height: calc(100vh - 260px);
  margin-top: 10px;
}

.preview-card {
  padding: 18px;
}

@media (max-width: 1440px) {
  .sidebar {
    width: 228px;
    min-width: 228px;
    max-width: 228px;
  }

  .view {
    padding: 16px 18px 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  }

  .stat-card {
    min-height: 82px;
    padding: 12px;
  }

  .stat-card strong {
    font-size: 26px;
  }
}

/* Premium institutional login */
.login-screen {
  position: relative;
  isolation: isolate;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #E6F0FA 0%, #E6F0FA 40%, #CCE1F5 100%);
}

.login-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.login-content {
  width: min(100%, 1110px);
  display: grid;
  grid-template-columns: clamp(380px, 31vw, 420px) minmax(460px, 560px);
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 4vw, 60px);
}

.login-blob {
  position: absolute;
  width: 360px;
  aspect-ratio: 1.2;
  background: rgba(0, 102, 204, 0.08);
  filter: blur(50px);
  border-radius: 58% 42% 64% 36%;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  will-change: transform;
}

.login-blob-one {
  top: -130px;
  left: -110px;
}

.login-blob-two {
  right: -120px;
  bottom: 20px;
  width: 410px;
  background: rgba(102, 165, 225, 0.08);
  border-radius: 42% 58% 36% 64%;
}

.login-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(58vw, 650px);
  aspect-ratio: 1;
  transform: translate3d(calc(-50% + var(--parallax-x, 0)), calc(-50% + var(--parallax-y, 0)), 0);
  will-change: transform;
}

.login-watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  clip-path: circle(41% at 50% 50%);
  filter: grayscale(1) saturate(0.25) contrast(1.15);
  opacity: 0.035;
  animation: login-watermark-rotate 120s linear infinite, login-watermark-breathe 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.golden-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
}

.golden-lines path {
  fill: none;
  stroke: url(#gold-line);
  stroke-width: 1.2;
}

.golden-lines .golden-shine {
  stroke: #FF9800;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 20 780;
  filter: drop-shadow(0 0 5px rgba(255, 152, 0, 0.55));
  animation: golden-line-shine 25s linear infinite;
}

.login-dots {
  position: absolute;
  width: 112px;
  height: 80px;
  opacity: 0.22;
  background-image: radial-gradient(circle, #0066CC 1.5px, transparent 1.8px);
  background-size: 14px 14px;
}

.dots-one {
  top: 34px;
  left: 38px;
}

.dots-two {
  top: 44px;
  right: 46px;
  opacity: 0.14;
}

.dots-three {
  right: 54px;
  bottom: 96px;
  opacity: 0.18;
}

.accessibility-orb {
  --float-distance: 18px;
  position: absolute;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: rgba(0, 102, 204, 0.32);
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(0, 102, 204, 0.07);
  backdrop-filter: blur(7px);
  animation: accessibility-float 30s ease-in-out infinite;
  transform: translate3d(var(--parallax-x, 0), calc(var(--parallax-y, 0) + var(--float-y, 0px)), 0);
  will-change: transform;
}

.access-icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orb-wheelchair {
  top: 11%;
  left: 4.8%;
  animation-duration: 26s;
}

.orb-libras {
  top: 12%;
  right: 6.5%;
  width: 60px;
  height: 60px;
  animation-duration: 34s;
  animation-delay: -10s;
}

.orb-hearing {
  top: 48%;
  right: 3.5%;
  animation-duration: 40s;
  animation-delay: -17s;
}

.orb-visual {
  bottom: 13%;
  left: 6%;
  width: 58px;
  height: 58px;
  animation-duration: 32s;
  animation-delay: -6s;
}

.orb-intellectual {
  right: 23%;
  bottom: 9%;
  width: 62px;
  height: 62px;
  animation-duration: 38s;
  animation-delay: -23s;
}

.login-waves {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(80px, 15vh, 150px);
  transform-origin: bottom;
  animation: login-wave-breathe 15s ease-in-out infinite;
  will-change: transform;
}

.login-waves .wave-back {
  fill: rgba(102, 165, 225, 0.16);
}

.login-waves .wave-middle {
  fill: rgba(51, 135, 215, 0.12);
}

.login-waves .wave-front {
  fill: rgba(0, 102, 204, 0.1);
}

.login-showcase {
  width: 100%;
  height: calc(100vh - 48px);
  max-height: 820px;
  min-height: min(620px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vh, 34px) 32px 24px;
  color: #FFFFFF;
  text-align: center;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(0, 102, 204, 0.97) 0%, rgba(0, 82, 163, 0.98) 52%, rgba(0, 61, 122, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 61, 122, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  backdrop-filter: blur(16px);
  will-change: transform;
}

.login-showcase::before,
.login-showcase::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.login-showcase::before {
  top: -310px;
  right: -170px;
  inset: -310px -170px auto auto;
}

.login-showcase::after {
  right: -260px;
  bottom: -300px;
  inset: auto -260px -300px auto;
  border-color: rgba(255, 152, 0, 0.28);
}

.showcase-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  width: 280px;
  height: 210px;
  background: rgba(102, 165, 225, 0.26);
  filter: blur(45px);
  transform: translateX(-50%);
}

.login-showcase-main,
.login-city {
  position: relative;
  z-index: 1;
}

.login-brand-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 11px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.login-brand-badge span {
  width: 7px;
  height: 7px;
  background: #FF9800;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.13);
}

.login-pcd-logo {
  width: clamp(118px, 16vh, 148px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(0, 41, 82, 0.3), 0 0 0 8px rgba(255, 255, 255, 0.06);
}

.login-pcd-logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translateY(-10px) scale(1.08);
  transform-origin: center;
}

.login-showcase h1 {
  margin: 0;
  font-size: clamp(56px, 7.5vh, 66px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 4px 20px rgba(0, 41, 82, 0.28);
}

.login-showcase h2 {
  max-width: 310px;
  margin: 7px auto 0;
  font-size: clamp(23px, 3vh, 28px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-line {
  width: 148px;
  height: 2px;
  margin: clamp(12px, 2vh, 18px) auto;
  background: linear-gradient(90deg, transparent, #FF9800 18%, #FF9800 82%, transparent);
  border-radius: 999px;
}

.login-showcase p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 2vh, 18px);
  line-height: 1.35;
  font-weight: 400;
}

.login-showcase strong {
  display: block;
  margin: 4px 0 9px;
  font-size: clamp(18px, 2.4vh, 22px);
  line-height: 1.15;
  font-weight: 600;
}

.login-showcase .login-mission {
  max-width: 320px;
  margin-inline: auto;
  font-size: clamp(14px, 1.75vh, 16px);
}

.login-city {
  width: 100%;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.login-city img {
  width: clamp(150px, 20vh, 180px);
  max-height: 74px;
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(17, 24, 39, 0.16));
}

.login-secretarias {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 330px;
  margin: auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(9px, 1.35vh, 10px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.login-secretarias span {
  flex: 1 1 0;
  min-width: 0;
}

.login-secretarias span:first-child {
  text-align: right;
}

.login-secretarias span:last-child {
  text-align: left;
}

.login-secretarias i {
  width: 1px;
  height: 28px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.login-panel {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 16px;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  will-change: transform;
}

.login-card {
  width: 100%;
  max-height: calc(100vh - 70px);
  padding: clamp(28px, 4.6vh, 40px) 44px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0, 82, 163, 0.14), 0 4px 15px rgba(0, 41, 82, 0.05), inset 0 1px 0 #FFFFFF;
  backdrop-filter: blur(18px);
}

.login-lock {
  width: clamp(62px, 9vh, 76px);
  height: clamp(62px, 9vh, 76px);
  display: grid;
  place-items: center;
  margin: 0 auto 9px;
  color: #0066CC;
  background: linear-gradient(145deg, #E6F0FA, #E6F0FA);
  border: 1px solid rgba(0, 102, 204, 0.08);
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(0, 102, 204, 0.1);
}

.login-lock .icon {
  width: 28px;
  height: 28px;
}

.login-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #0066CC;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.login-screen .login-card h3 {
  margin: 0;
  color: #003D7A;
  text-align: center;
  font-size: clamp(32px, 4.7vh, 40px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.login-screen .login-card > p {
  margin: 8px 0 clamp(17px, 2.7vh, 22px);
  color: #6B7280;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
}

.login-screen .field {
  gap: 7px;
  color: #003D7A;
  font-size: 14px;
  font-weight: 500;
}

.login-screen .field + .field {
  margin-top: clamp(11px, 1.7vh, 15px);
}

.login-screen .input-shell {
  min-height: 50px;
  padding: 0 14px;
  color: #66A5E1;
  background: rgba(230, 240, 250, 0.86);
  border: 1px solid #CCE1F5;
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-screen .input-shell:hover {
  background: #FFFFFF;
  border-color: #99C3EB;
}

.login-screen .input-shell:focus-within {
  background: #FFFFFF;
  border-color: #3387D7;
  box-shadow: 0 0 0 4px rgba(51, 135, 215, 0.11), 0 8px 18px rgba(0, 102, 204, 0.06);
}

.login-screen .input-shell input {
  height: 48px;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
}

.login-screen .input-shell input:focus {
  border: 0;
  box-shadow: none;
}

.login-screen .input-shell input::placeholder {
  color: #9CA3AF;
  opacity: 1;
}

.login-options {
  margin: clamp(14px, 2vh, 18px) 0;
  color: #6B7280;
  font-size: 14px;
}

.login-options a {
  color: #0066CC;
  font-weight: 500;
  transition: color 0.18s ease;
}

.login-options a:hover {
  color: #003D7A;
  text-decoration: underline;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.login-card .btn-full {
  min-height: 50px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(100deg, #0066CC 0%, #3387D7 55%, #0066CC 100%);
  border-radius: 12px;
  box-shadow: 0 13px 28px rgba(0, 102, 204, 0.22);
}

.login-card .btn-full:hover {
  background: linear-gradient(100deg, #0052A3 0%, #0066CC 55%, #0052A3 100%);
  box-shadow: 0 17px 32px rgba(0, 102, 204, 0.28);
  transform: translateY(-2px);
}

.login-help {
  margin: clamp(18px, 2.7vh, 24px) -44px calc(clamp(28px, 4.6vh, 40px) * -1);
  padding: clamp(14px, 2vh, 18px) 44px;
  background: rgba(230, 240, 250, 0.72);
  border-top: 1px solid #CCE1F5;
}

.login-help .help-icon {
  width: 46px;
  height: 46px;
  color: #0066CC;
  background: #E6F0FA;
}

.login-help strong {
  color: #0066CC;
  font-size: 14px;
  font-weight: 600;
}

.login-help p {
  font-size: 13px;
  font-weight: 400;
}

.login-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
}

.login-secure {
  gap: 18px;
  color: #3387D7;
  font-size: 12px;
  font-weight: 400;
}

.login-secure .icon {
  width: 16px;
  height: 16px;
}

.login-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  opacity: 0;
  background: linear-gradient(135deg, rgba(230, 240, 250, 0.96) 0%, rgba(230, 240, 250, 0.95) 45%, rgba(204, 225, 245, 0.96) 100%);
  backdrop-filter: blur(10px);
  transition: opacity 0.4s ease;
}

.login-loading.is-visible {
  opacity: 1;
}

.login-loading-core {
  width: min(100%, 390px);
  display: grid;
  justify-items: center;
  position: relative;
  padding-top: 222px;
  color: #003D7A;
  text-align: center;
  opacity: 0;
  transform: scale(0.94) translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.login-loading.is-visible .login-loading-core {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.login-loading-logo {
  position: absolute;
  top: 35px;
  left: 50%;
  z-index: 2;
  width: 142px;
  height: 142px;
  overflow: hidden;
  background: #FFFFFF;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 18px 45px rgba(0, 102, 204, 0.18), 0 0 0 9px rgba(51, 135, 215, 0.06);
  transform: translateX(-50%);
  animation: login-logo-pulse 1.8s ease-in-out infinite;
}

.login-loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.24);
  transform-origin: center;
}

.login-orbit {
  position: absolute;
  top: 0;
  left: 50%;
  border-style: solid;
  border-radius: 50%;
  transform: translateX(-50%);
  will-change: transform;
}

.orbit-blue {
  width: 212px;
  height: 212px;
  border-width: 2px;
  border-color: #0066CC transparent rgba(0, 102, 204, 0.18) #0066CC;
  animation: login-orbit-clockwise 4.8s linear infinite;
}

.orbit-cyan {
  top: 12px;
  width: 188px;
  height: 188px;
  border-width: 1px;
  border-color: transparent #3387D7 #3387D7 rgba(51, 135, 215, 0.16);
  animation: login-orbit-counter 3.7s linear infinite;
}

.orbit-gold {
  top: 22px;
  width: 168px;
  height: 168px;
  border-width: 2px;
  border-color: #FF9800 rgba(255, 152, 0, 0.13) transparent #FF9800;
  animation: login-orbit-clockwise 5.8s linear infinite;
}

.login-loading-copy {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.login-loading-copy strong {
  font-size: 24px;
  font-weight: 700;
}

.login-loading-message {
  min-height: 22px;
  color: #0066CC;
  font-size: 15px;
  font-weight: 400;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.login-loading-message.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.login-loading-progress {
  width: min(280px, 82vw);
  height: 6px;
  margin-top: 24px;
  overflow: hidden;
  background: rgba(0, 102, 204, 0.12);
  border-radius: 999px;
}

.login-loading-progress span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #0066CC, #3387D7, #FF9800);
  border-radius: inherit;
}

.login-loading.is-visible .login-loading-progress span {
  animation: login-progress-fill 1.95s cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

.login-loading-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-100%);
  animation: login-progress-shine 0.85s ease-in-out infinite;
}

.login-loading-core > small {
  margin-top: 13px;
  color: #3387D7;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-success-check {
  position: absolute;
  right: -3px;
  bottom: 7px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  background: #0066CC;
  border: 4px solid #E6F0FA;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.35);
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.login-success-check svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-loading.is-success .login-success-check {
  opacity: 1;
  transform: scale(1);
}

.login-loading.is-success .login-loading-logo {
  animation: login-logo-success 0.38s ease forwards;
}

.login-loading-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: rgba(51, 135, 215, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(51, 135, 215, 0.05);
  animation: login-particle-float 4s ease-in-out infinite;
}

.particle-one { top: 20%; left: 19%; animation-delay: -0.7s; }
.particle-two { top: 30%; right: 18%; width: 5px; height: 5px; animation-delay: -2.1s; }
.particle-three { bottom: 24%; left: 25%; width: 5px; height: 5px; background: rgba(255, 152, 0, 0.38); animation-delay: -1.3s; }
.particle-four { right: 24%; bottom: 18%; background: rgba(0, 102, 204, 0.24); animation-delay: -3s; }

@keyframes login-orbit-clockwise {
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes login-orbit-counter {
  to { transform: translateX(-50%) rotate(-360deg); }
}

@keyframes login-logo-pulse {
  0%, 100% { box-shadow: 0 18px 45px rgba(0, 102, 204, 0.18), 0 0 0 9px rgba(51, 135, 215, 0.06); }
  50% { box-shadow: 0 22px 50px rgba(0, 102, 204, 0.23), 0 0 0 13px rgba(51, 135, 215, 0.035); }
}

@keyframes login-logo-success {
  50% { transform: translateX(-50%) scale(1.07); }
  100% { transform: translateX(-50%) scale(1); }
}

@keyframes login-progress-fill {
  0% { width: 0; }
  45% { width: 52%; }
  76% { width: 82%; }
  100% { width: 100%; }
}

@keyframes login-progress-shine {
  to { transform: translateX(100%); }
}

@keyframes login-particle-float {
  0%, 100% { transform: translate3d(0, -10px, 0); opacity: 0.38; }
  50% { transform: translate3d(5px, 10px, 0); opacity: 0.75; }
}

@keyframes login-watermark-rotate {
  to { transform: rotate(360deg); }
}

@keyframes login-watermark-breathe {
  0%, 100% { opacity: 0.025; }
  50% { opacity: 0.05; }
}

@keyframes golden-line-shine {
  to { stroke-dashoffset: -800; }
}

@keyframes accessibility-float {
  0%, 100% {
    transform: translate3d(var(--parallax-x, 0), calc(var(--parallax-y, 0) - 18px), 0);
  }
  50% {
    transform: translate3d(var(--parallax-x, 0), calc(var(--parallax-y, 0) + 18px), 0);
  }
}

@keyframes login-wave-breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.05); }
}

@media (max-width: 1100px) {
  .login-content {
    width: min(100%, 920px);
    grid-template-columns: minmax(320px, 360px) minmax(420px, 500px);
    gap: 28px;
  }

  .login-showcase {
    padding-inline: 24px;
  }

  .login-pcd-logo {
    width: clamp(105px, 15vh, 132px);
  }

  .login-card {
    padding-inline: 36px;
  }

  .login-help {
    margin-inline: -36px;
    padding-inline: 36px;
  }

  .orb-hearing,
  .orb-intellectual {
    display: none;
  }
}

@media (max-width: 860px) {
  .login-screen {
    height: 100svh;
    min-height: 100svh;
    padding: 18px;
    overflow-y: auto;
  }

  .login-content {
    grid-template-columns: minmax(260px, 310px) minmax(390px, 470px);
    gap: 20px;
  }

  .login-showcase h2 {
    font-size: 22px;
  }

  .login-mission,
  .login-showcase-main > p:first-of-type {
    display: none;
  }

  .login-showcase strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-watermark img,
  .golden-lines .golden-shine,
  .accessibility-orb,
  .login-waves {
    animation: none;
  }

  .login-showcase,
  .login-panel,
  .login-watermark,
  .login-blob {
    transform: none;
  }

  .login-loading.reduced-motion .login-orbit,
  .login-loading.reduced-motion .login-loading-logo,
  .login-loading.reduced-motion .login-loading-progress span,
  .login-loading.reduced-motion .login-loading-progress span::after {
    animation: none;
  }

  .login-loading.reduced-motion .login-loading-particle {
    display: none;
  }

  .login-loading.reduced-motion .login-loading-core {
    transform: none;
  }

  .login-loading.reduced-motion .login-loading-progress span {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .generate-layout,
  .card-generation {
    grid-template-columns: 1fr;
  }

  .card-preview-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 1100px) {
  .dashboard-grid,
  .form-layout,
  .help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }

  .login-screen {
    height: 100svh;
    min-height: 100svh;
    display: block;
    padding: 14px;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .login-content {
    width: min(100%, 520px);
    grid-template-columns: 1fr;
    gap: 14px;
    margin: auto;
  }

  .login-showcase {
    height: auto;
    min-height: 0;
    max-height: none;
    flex-direction: row;
    padding: 13px 16px;
    text-align: left;
    border-radius: 16px;
    transform: none;
  }

  .login-showcase-main {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    column-gap: 12px;
  }

  .login-brand-badge,
  .login-showcase .login-line,
  .login-showcase-main > p,
  .login-showcase-main > strong {
    display: none;
  }

  .login-pcd-logo {
    width: 56px;
    grid-row: span 2;
    margin: 0;
  }

  .login-showcase h1 {
    font-size: 30px;
    line-height: 1;
  }

  .login-showcase h2 {
    max-width: 230px;
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.2;
  }

  .login-city {
    width: auto;
    padding: 0 0 0 14px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }

  .login-city img {
    width: 112px;
    max-height: 44px;
    margin: 0;
  }

  .login-city span {
    display: none;
  }

  .login-panel {
    gap: 12px;
    transform: none;
  }

  .login-card {
    max-height: none;
    padding: 24px;
    overflow: visible;
  }

  .login-lock {
    width: 58px;
    height: 58px;
  }

  .login-screen .login-card h3 {
    font-size: 32px;
  }

  .login-help {
    margin: 20px -24px -24px;
    padding: 15px 24px;
  }

  .login-watermark {
    width: 92vw;
  }

  .accessibility-orb {
    opacity: 0.55;
  }

  .orb-libras,
  .orb-hearing,
  .orb-intellectual {
    display: none;
  }

  .login-waves {
    position: fixed;
  }

  .app-shell {
    height: 100vh;
    min-height: 100vh;
  }

  .sidebar,
  .sidebar.collapsed {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.collapsed .sidebar-brand div,
  .sidebar.collapsed .nav-title,
  .sidebar.collapsed .sidebar-link span,
  .sidebar.collapsed .nav-parent span,
  .sidebar.collapsed .nav-parent .icon:last-child {
    display: block;
  }

  .sidebar.collapsed .nav-parent .icon:last-child {
    display: block;
  }

  .sidebar.collapsed .sidebar-brand,
  .sidebar.collapsed .sidebar-link,
  .sidebar.collapsed .nav-link,
  .sidebar.collapsed .nav-parent {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .sidebar.collapsed .nav-title {
    display: block;
  }

  .sidebar.collapsed .nav-sub {
    padding-left: 38px;
  }

  .sidebar.open,
  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(0, 41, 82, 0.48);
    border: 0;
  }

  .app-main {
    height: 100vh;
    min-height: 100vh;
    width: 100%;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 12px;
  }

  .view {
    padding: 16px;
  }

  .form-grid,
  .settings-grid,
  .delivery-form,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-4 {
    grid-column: span 1;
  }

  .form-actions {
    position: static;
    flex-direction: column;
    margin: 18px 0 0;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .print-area,
  .print-area * {
    visibility: visible !important;
  }

  .print-area {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: white;
  }

  .print-area .card-template,
  .print-area .card-preview {
    transform: scale(0.7);
  }
}


/* ===== AJUSTE GLOBAL DE DENSIDADE ===== */

.sidebar {
  width: 260px;
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar-brand {
  min-height: 72px;
  padding: 0 14px;
}

.sidebar-brand img {
  width: 42px;
  height: 42px;
}

.nav-item {
  padding: 10px 12px;
  font-size: 0.86rem;
}

.topbar {
  min-height: 66px;
  padding: 0 22px;
}

.topbar h1 {
  font-size: 1.45rem;
}

.content-area {
  gap: 16px;
  padding: 20px 22px;
}

.filters-bar {
  padding: 14px 22px 16px;
}

.filters-bar .field,
.search-box {
  height: 40px;
}

.panel {
  padding: 16px;
}

/* ===== TABELA MAIS COMPACTA E BONITA ===== */

.table-wrap {
  border-radius: 14px;
  border: 1px solid #CCE1F5;
  background: #FFFFFF;
  box-shadow: 0 12px 28px rgba(0, 61, 122, 0.08);
  overflow: visible;
}

table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: #E6F0FA;
  color: #003D7A;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #CCE1F5;
}

td {
  font-size: 0.84rem;
  color: #111827;
}

tbody tr {
  transition: background-color 160ms ease;
}

tbody tr:hover {
  background: #E6F0FA;
}

/* protocolo mais bonito */
td:first-child {
  color: var(--azul-prefeitura);
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ===== STATUS MAIS PREMIUM ===== */

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

/* ===== BOTÃO DROPDOWN DE AÇÕES ===== */

.row-actions {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.action-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
  height: 32px;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0052A3;
  padding: 0 10px 0 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 61, 122, 0.07);
}

.action-dropdown-btn:hover {
  background: #E6F0FA;
  border-color: #99C3EB;
}

.action-dropdown-btn .icon {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.row-actions.open .action-dropdown-btn {
  color: #FFFFFF;
  background: #0052A3;
  border-color: #0052A3;
}

.row-actions.open .action-dropdown-btn .icon {
  transform: rotate(180deg);
}

.action-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  display: grid;
  min-width: 210px;
  border: 1px solid #CCE1F5;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 18px 42px rgba(0, 61, 122, 0.18);
  padding: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.action-dropdown-menu.is-fixed {
  position: fixed;
  top: var(--action-menu-top, 0);
  left: var(--action-menu-left, 0);
  right: auto;
  bottom: auto !important;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
}

.row-actions.open .action-dropdown-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.action-dropdown-menu button {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-start;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #003D7A;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.action-dropdown-menu button .icon {
  width: 16px;
  height: 16px;
}

.action-dropdown-menu button:hover {
  background: #E6F0FA;
}

.action-dropdown-menu button[data-action="delete"],
.action-dropdown-menu button[data-action="reject"],
.action-dropdown-menu button[data-status="Indeferido"],
.action-dropdown-menu button[data-status="Cancelado"] {
  color: #E11D48;
}

.action-dropdown-menu button[data-action="delete"]:hover,
.action-dropdown-menu button[data-action="reject"]:hover,
.action-dropdown-menu button[data-status="Indeferido"]:hover,
.action-dropdown-menu button[data-status="Cancelado"]:hover {
  background: #FFF1F2;
}

/* Dashboard records table */
.dashboard-records-card {
  overflow: visible;
  border: 1px solid rgba(153, 195, 235, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), #FFFFFF 44%),
    var(--white);
  box-shadow: 0 16px 38px rgba(0, 61, 122, 0.08);
}

.records-table-card {
  margin-top: 0;
}

.dashboard-records-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 14px;
  background:
    linear-gradient(90deg, rgba(0, 102, 204, 0.07), rgba(255, 255, 255, 0) 62%),
    #FFFFFF;
  border-bottom: 1px solid #CCE1F5;
}

.dashboard-records-header h2 {
  margin: 2px 0 0;
  color: #002952;
  font-size: 18px;
  font-weight: 700;
}

.dashboard-records-header p {
  margin: 4px 0 0;
  color: #6B7280;
  font-size: 13px;
}

.table-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0052A3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #00A859;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(0, 128, 64, 0.12);
}

.dashboard-records-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.dashboard-records-meta > span {
  padding: 7px 10px;
  color: #374151;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-records-meta .btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  box-shadow: none;
}

.records-table-card .dashboard-records-meta .btn {
  white-space: nowrap;
}

.dashboard-table-scroll {
  border-top: 0;
  overflow-x: auto;
  overflow-y: visible;
}

.dashboard-records-table {
  width: 100%;
  min-width: 1020px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-records-table .col-beneficiary { width: 24%; }
.dashboard-records-table .col-protocol { width: 14%; }
.dashboard-records-table .col-type { width: 10%; }
.dashboard-records-table .col-cras { width: 16%; }
.dashboard-records-table .col-status { width: 16%; }
.dashboard-records-table .col-date { width: 12%; }
.dashboard-records-table .col-actions { width: 8%; }

.users-records-table {
  min-width: 760px;
}

.users-records-table .col-user { width: 38%; }
.users-records-table .col-profile { width: 20%; }
.users-records-table .col-status { width: 16%; }
.users-records-table .col-date { width: 16%; }
.users-records-table .col-actions { width: 10%; }

.cras-access-table .col-user { width: 42%; }
.cras-access-table .col-profile { width: 22%; }
.cras-access-table .col-status { width: 12%; }
.cras-access-table .col-date { width: 14%; }
.cras-access-table .col-actions { width: 10%; }

.cras-login-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cras-login-cell strong,
.cras-login-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cras-login-cell strong {
  color: #0066CC;
  font-size: 12px;
  font-weight: 700;
}

.cras-login-cell small {
  color: #6B7280;
  font-size: 11px;
}

.history-records-table {
  min-width: 1120px;
  table-layout: fixed;
}

.history-records-table .col-history-date { width: 12%; }
.history-records-table .col-history-process { width: 21%; }
.history-records-table .col-history-action { width: 21%; }
.history-records-table .col-history-change { width: 18%; }
.history-records-table .col-history-user { width: 14%; }
.history-records-table .col-history-unit { width: 14%; }

.history-records-table th,
.history-records-table td {
  text-align: left !important;
}

.history-records-table th:first-child,
.history-records-table td:first-child {
  text-align: center !important;
}

.history-records-table thead th > span {
  justify-content: flex-start !important;
  padding-left: 0 !important;
}

.history-records-table thead th:first-child > span {
  justify-content: center !important;
}

.history-process-cell,
.history-action-cell,
.history-user-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.history-process-cell strong,
.history-action-cell strong,
.history-user-cell strong,
.history-process-cell small,
.history-action-cell small,
.history-user-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-process-cell strong,
.history-action-cell strong,
.history-user-cell strong {
  color: #002952;
  font-size: 12px;
  font-weight: 650;
}

.history-process-cell small,
.history-action-cell small,
.history-user-cell small,
.history-no-change {
  color: #6B7280;
  font-size: 11px;
}

.history-status-change {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #6B7280;
  font-size: 10.5px;
}

.history-status-change .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.history-status-change span,
.history-status-change strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-status-change strong {
  color: #0066CC;
  font-weight: 650;
}

.history-unit {
  display: block;
  overflow: hidden;
  color: #374151;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-modal {
  width: min(820px, 100%);
}

.history-timeline {
  display: grid;
  max-height: min(62vh, 560px);
  margin-top: 18px;
  padding-right: 6px;
  overflow-y: auto;
}

.history-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 18px;
}

.history-timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: #CCE1F5;
}

.history-timeline-marker {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  background: #0066CC;
  border-radius: 50%;
}

.history-timeline-marker .icon {
  width: 15px;
  height: 15px;
}

.history-timeline-item > div {
  min-width: 0;
  padding: 5px 0 0;
}

.history-timeline-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.history-timeline-item header strong {
  color: #002952;
  font-size: 13px;
}

.history-timeline-item time,
.history-timeline-item p,
.history-timeline-item small {
  color: #6B7280;
  font-size: 11px;
}

.history-timeline-item p {
  margin: 4px 0 7px;
}

.history-timeline-item small {
  display: block;
  margin-top: 7px;
}

.document-uploader {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.document-uploader-inline {
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  padding: 14px;
  border: 1px solid #CCE1F5;
  border-radius: 12px;
  background: #F9FAFB;
}

.document-upload-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: #0066CC;
  background: #FFFFFF;
  border: 1px solid #99C3EB;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.document-upload-button:hover {
  background: #E6F0FA;
  border-color: #66A5E1;
}

.document-upload-button .icon {
  width: 16px;
  height: 16px;
}

.pending-documents-list,
.documents-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.pending-document-item,
.document-item {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #CCE1F5;
  border-radius: 10px;
  background: #FFFFFF;
}

.pending-document-item {
  grid-template-columns: 32px minmax(0, 1fr) 32px;
}

.document-item {
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
}

.document-type-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #0066CC;
  background: #E6F0FA;
  border-radius: 9px;
}

.document-type-icon .icon {
  width: 16px;
  height: 16px;
}

.pending-document-item > div,
.document-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pending-document-item strong,
.document-item-copy strong {
  color: #002952;
  font-size: 12px;
  font-weight: 650;
}

.pending-document-item small,
.document-item-copy span,
.document-item-copy small {
  overflow: hidden;
  color: #6B7280;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.documents-empty {
  margin: 0;
  padding: 14px;
  color: #6B7280;
  background: #F9FAFB;
  border: 1px dashed #99C3EB;
  border-radius: 10px;
  font-size: 11px;
  text-align: center;
}

.documents-modal {
  width: min(900px, 100%);
}

.documents-list {
  max-height: min(55vh, 500px);
  padding-right: 5px;
  overflow-y: auto;
}

.documents-demo-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 11px;
  color: #374151;
  background: #FFF4DA;
  border: 1px solid #FFE0A3;
  border-radius: 10px;
  font-size: 11px;
}

.documents-demo-note .icon {
  width: 15px;
  height: 15px;
  color: #E68900;
}

.document-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  text-transform: capitalize;
}

.document-status-enviado {
  color: #0066CC;
  background: #E6F0FA;
}

.document-status-pendente {
  color: #E68900;
  background: #FFF4DA;
}

.document-status-validado {
  color: #008040;
  background: #ECFDF3;
}

.document-item-actions {
  display: flex;
  gap: 5px;
}

.document-item-actions .icon-button {
  width: 30px;
  height: 30px;
  color: #0066CC;
  border: 1px solid #CCE1F5;
  border-radius: 9px;
  background: #FFFFFF;
}

.document-item-actions .icon-button:hover {
  background: #E6F0FA;
}

.document-item-actions .icon-button.danger {
  color: #E11D48;
  border-color: #FFF1F2;
}

.document-item-actions .icon-button.danger:hover {
  background: #FFF1F2;
}

.dashboard-records-table th,
.dashboard-records-table td {
  border-right: 0;
  vertical-align: middle;
}

.dashboard-records-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 14px;
  color: #0052A3;
  background: #E6F0FA;
  border-bottom: 1px solid #CCE1F5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-records-table thead th > span {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 16px;
}

.dashboard-records-table thead th.th-beneficiary > span {
  justify-content: flex-start;
  padding-left: 47px;
}

.dashboard-records-table thead th.th-left > span {
  justify-content: flex-start;
}

.dashboard-records-table thead th.th-center > span {
  justify-content: center;
}

.dashboard-records-table thead th.th-actions > span {
  justify-content: center;
}

.dashboard-records-table tbody td {
  height: 68px;
  padding: 10px 14px;
  color: #002952;
  background: #FFFFFF;
  border-bottom: 1px solid #E6F0FA;
  font-size: 13px;
}

.dashboard-records-table th:nth-child(1),
.dashboard-records-table td:nth-child(1),
.dashboard-records-table th:nth-child(4),
.dashboard-records-table td:nth-child(4) {
  text-align: left;
}

.dashboard-records-table th:nth-child(2),
.dashboard-records-table td:nth-child(2),
.dashboard-records-table th:nth-child(3),
.dashboard-records-table td:nth-child(3),
.dashboard-records-table th:nth-child(5),
.dashboard-records-table td:nth-child(5),
.dashboard-records-table th:nth-child(6),
.dashboard-records-table td:nth-child(6) {
  text-align: center;
}

.dashboard-records-table th:nth-child(7) {
  text-align: center;
}

.dashboard-records-table td:nth-child(7) {
  text-align: center;
}

.dashboard-records-table tbody tr:nth-child(even) td {
  background: #F9FAFB;
}

.dashboard-records-table tbody tr:hover td {
  background: #E6F0FA;
}

.dashboard-records-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-records-table td:first-child {
  color: inherit;
  font-family: Inter, sans-serif;
  font-weight: 400;
}

.beneficiary-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  width: 100%;
}

.beneficiary-cell > div {
  min-width: 0;
}

.beneficiary-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #0052A3;
  background: linear-gradient(135deg, #E6F0FA, #F9FAFB);
  border: 1px solid #CCE1F5;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.beneficiary-cell strong,
.cras-cell strong,
.date-cell strong {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beneficiary-cell small,
.cras-cell small,
.date-cell small {
  display: block;
  margin-top: 3px;
  color: #6B7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.protocol-chip,
.type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  padding: 0 10px;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
}

.protocol-chip {
  color: #003D7A;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.type-chip {
  color: #374151;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
}

.cras-cell {
  min-width: 0;
  width: 100%;
}

.date-cell {
  min-width: 0;
  width: max-content;
  margin-inline: auto;
  text-align: left;
}

.dashboard-records-table .status {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-records-table .status::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: currentColor;
  border-radius: 999px;
}

.dashboard-row-actions {
  min-width: 0;
  width: 100%;
  justify-content: center;
  overflow: visible;
}

.dashboard-record-row:last-child .action-dropdown-menu:not(.is-fixed),
.dashboard-record-row:nth-last-child(2) .action-dropdown-menu:not(.is-fixed) {
  top: auto;
  bottom: calc(100% + 8px);
}

.dashboard-records-table th:last-child,
.dashboard-records-table td:last-child {
  text-align: center;
}

.dashboard-records-table .empty-state {
  padding: 28px;
  color: #6B7280;
  text-align: center;
}

.users-records-table th:nth-child(1),
.users-records-table td:nth-child(1) {
  text-align: left;
}

.users-records-table th:nth-child(2),
.users-records-table td:nth-child(2),
.users-records-table th:nth-child(3),
.users-records-table td:nth-child(3),
.users-records-table th:nth-child(4),
.users-records-table td:nth-child(4),
.users-records-table th:nth-child(5),
.users-records-table td:nth-child(5) {
  text-align: center;
}

/* Stable responsive topbar */
.topbar {
  height: 60px;
  min-height: 60px;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 18px;
  overflow: visible;
}

.menu-toggle,
.notification-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid transparent;
  box-shadow: none;
  transform: none;
}

.menu-toggle:hover,
.notification-button:hover {
  background: #E6F0FA;
  border-color: #CCE1F5;
  box-shadow: inset 0 0 0 1px rgba(0, 102, 204, 0.08);
  transform: none;
}

.topbar-title,
.breadcrumb {
  min-width: 0;
  overflow: hidden;
}

.topbar-title {
  flex: 0 1 auto;
  max-width: min(44vw, 520px);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.breadcrumb {
  flex: 1 1 auto;
}

.breadcrumb a,
.breadcrumb span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-spacer {
  flex: 1 1 18px;
  min-width: 12px;
}

.notification-button {
  position: relative;
  margin-left: 0;
}

.notification-button b {
  top: -2px;
  right: -2px;
}

.profile {
  min-width: 0;
  flex: 0 1 auto;
}

.profile-button {
  max-width: 260px;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}

.profile-copy {
  min-width: 0;
  overflow: hidden;
}

.profile-copy strong,
.profile-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chevron {
  flex: 0 0 auto;
}

@media (max-width: 1200px) {
  .topbar {
    gap: 10px;
    padding-inline: 14px;
  }

  .profile-button {
    max-width: 158px;
  }

  .profile-copy span {
    display: none;
  }
}

@media (max-width: 980px) {
  .profile-copy {
    display: none;
  }

  .profile-button {
    width: 40px;
    max-width: 40px;
    padding: 2px;
  }

  .profile-chevron {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 58px;
    min-height: 58px;
    flex-wrap: nowrap;
    padding: 0 12px;
  }
}

/* Etapa 8 - refinamento visual institucional */
.dashboard-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(153, 195, 235, 0.78);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 102, 204, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(230, 240, 250, 0.94));
  box-shadow: 0 14px 34px rgba(0, 41, 82, 0.06);
}

.page-kicker,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0052A3;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-intro h1 {
  margin: 4px 0 5px;
  color: #002952;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.08;
}

.dashboard-intro p {
  max-width: 820px;
  margin: 0;
  color: #6B7280;
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-user-card {
  min-width: 248px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(0, 82, 163, 0.08);
}

.dashboard-user-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #0052A3;
  background: #E6F0FA;
  border-radius: 14px;
}

.dashboard-user-card strong,
.dashboard-user-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user-card strong {
  color: #002952;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-user-card small {
  max-width: 230px;
  margin-top: 3px;
  color: #6B7280;
  font-size: 12px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(204, 225, 245, 0.88);
  background: linear-gradient(135deg, #FFFFFF, #F9FAFB);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.stat-card:hover {
  border-color: #99C3EB;
  box-shadow: 0 16px 34px rgba(0, 102, 204, 0.1);
  transform: translateY(-1px);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -22px -28px auto;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--stat-soft, rgba(0, 102, 204, 0.08));
}

.stat-icon {
  color: var(--stat-main, #0052A3);
  background: var(--stat-bg, #E6F0FA);
  border: 1px solid var(--stat-border, #CCE1F5);
}

.stat-blue { --stat-main: #0052A3; --stat-bg: #E6F0FA; --stat-border: #CCE1F5; --stat-soft: rgba(0, 102, 204, 0.1); }
.stat-cyan { --stat-main: #0052A3; --stat-bg: #E6F0FA; --stat-border: #CCE1F5; --stat-soft: rgba(0, 82, 163, 0.1); }
.stat-amber { --stat-main: #E68900; --stat-bg: #FFF4DA; --stat-border: #FFE0A3; --stat-soft: rgba(255, 152, 0, 0.13); }
.stat-green { --stat-main: #008040; --stat-bg: #ECFDF3; --stat-border: #D1FADF; --stat-soft: rgba(0, 128, 64, 0.12); }
.stat-purple { --stat-main: #0052A3; --stat-bg: #E6F0FA; --stat-border: #CCE1F5; --stat-soft: rgba(51, 135, 215, 0.11); }
.stat-sky { --stat-main: #0052A3; --stat-bg: #E6F0FA; --stat-border: #CCE1F5; --stat-soft: rgba(0, 82, 163, 0.1); }
.stat-teal { --stat-main: #003D7A; --stat-bg: #ECFDF3; --stat-border: #D1FADF; --stat-soft: rgba(0, 61, 122, 0.1); }

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title-row h2 {
  margin: 3px 0 0;
  color: #002952;
  font-size: 17px;
  line-height: 1.2;
}

.dashboard-chart-card {
  border: 1px solid rgba(153, 195, 235, 0.84);
  background: linear-gradient(180deg, #FFFFFF, #F9FAFB);
}

.donut {
  display: grid;
  place-items: center;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(0, 41, 82, 0.03);
}

.donut::after {
  z-index: 0;
  box-shadow: inset 0 0 0 1px rgba(204, 225, 245, 0.7);
}

.donut strong,
.donut span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.donut strong {
  color: #002952;
  font-size: 24px;
  line-height: 1;
}

.donut span {
  margin-top: 3px;
  color: #6B7280;
  font-size: 10px;
  font-weight: 600;
}

.legend li {
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  padding: 4px 0;
}

.legend small {
  color: #66A5E1;
  font-size: 11px;
  font-weight: 600;
}

.bar-chart {
  align-items: end;
  min-height: 176px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(230, 240, 250, 0.7), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(to top, transparent 0, transparent 31px, #CCE1F5 32px);
}

.bar-chart-item {
  min-height: 8px;
  border-radius: 9px 9px 3px 3px;
  box-shadow: 0 10px 18px rgba(0, 102, 204, 0.14);
}

.bar-chart-item b {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  color: #002952;
  font-size: 12px;
}

.bar-chart-item small {
  position: absolute;
  bottom: -37px;
  left: 50%;
  max-width: 78px;
  transform: translateX(-50%);
  overflow: hidden;
  color: #6B7280;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-flow-card {
  margin-bottom: 14px;
  border: 1px solid rgba(153, 195, 235, 0.84);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(230, 240, 250, 0.96)),
    radial-gradient(circle at 8% 12%, rgba(0, 102, 204, 0.08), transparent 24%);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 10px;
}

.process-flow-step {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px 8px;
  border: 1px solid #CCE1F5;
  border-radius: 14px;
  background: #FFFFFF;
}

.process-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 10px;
  height: 2px;
  background: linear-gradient(90deg, #99C3EB, #FF9800);
}

.process-flow-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #0052A3;
  background: #E6F0FA;
  border-radius: 12px;
}

.process-flow-step strong {
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.dashboard-records-card {
  box-shadow: 0 14px 34px rgba(0, 41, 82, 0.06);
}

.dashboard-records-header {
  gap: 14px;
}

.dashboard-records-header h2 {
  letter-spacing: 0;
}

.dashboard-records-table th span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0;
  background: transparent;
  color: #0052A3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.dashboard-records-table tbody td {
  vertical-align: middle;
}

.action-dropdown-btn {
  min-width: 92px;
  border-color: #CCE1F5;
  background: linear-gradient(180deg, #FFFFFF, #E6F0FA);
  box-shadow: 0 6px 14px rgba(0, 102, 204, 0.08);
}

.action-dropdown-btn:hover {
  border-color: #66A5E1;
  background: #E6F0FA;
}

.dashboard-records-table .status {
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.status-pendencia {
  color: #E68900;
  background: #FFF4DA;
}

.status-indeferido,
.status-cancelado {
  color: #E11D48;
  background: #FFF1F2;
}

.status-protocolo-gerado,
.status-encaminhado-ao-cras,
.status-em-triagem,
.status-em-analise-semasc {
  color: #0066CC;
  background: #E6F0FA;
}

.status-carteirinha-gerada,
.status-enviada-ao-cras {
  color: #0052A3;
  background: #E6F0FA;
}

.status-entregue,
.status-aprovado {
  color: #008040;
  background: #ECFDF3;
}

.history-overview-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(153, 195, 235, 0.86);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 14px 34px rgba(0, 41, 82, 0.06);
}

.history-page-timeline {
  display: grid;
  gap: 0;
  padding: 4px 18px 18px;
}

.history-page-item {
  position: relative;
  display: grid;
  grid-template-columns: 98px 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
}

.history-page-item:not(:last-child) {
  border-bottom: 1px solid #E6F0FA;
}

.history-page-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: -14px;
  left: 114px;
  width: 2px;
  background: linear-gradient(#CCE1F5, transparent);
}

.history-page-date strong,
.history-page-date span {
  display: block;
  text-align: right;
}

.history-page-date strong {
  color: #002952;
  font-size: 12px;
}

.history-page-date span {
  margin-top: 3px;
  color: #6B7280;
  font-size: 11px;
}

.history-page-marker {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #0052A3;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
}

.history-page-marker .icon {
  width: 15px;
  height: 15px;
}

.history-page-content {
  min-width: 0;
  padding: 12px;
  border: 1px solid #CCE1F5;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF, #F9FAFB);
}

.history-page-content header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.history-page-content h2 {
  margin: 3px 0 0;
  color: #002952;
  font-size: 14px;
}

.history-page-content p {
  margin: 8px 0;
  color: #6B7280;
  font-size: 12px;
}

.history-page-content p strong {
  color: #002952;
}

.history-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  color: #374151;
  background: #E6F0FA;
  border-radius: 999px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-page-meta .icon {
  width: 13px;
  height: 13px;
  color: #0052A3;
}

.history-page-content small {
  display: block;
  margin-top: 9px;
  color: #6B7280;
  font-size: 11px;
  line-height: 1.4;
}

.documents-panel-header,
.documents-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.documents-panel-header > span,
.documents-modal-header > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #0052A3;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 13px;
}

.documents-panel-header h2,
.documents-modal-header h2 {
  margin: 0;
}

.documents-panel-header p,
.documents-modal-header p {
  margin: 4px 0 0;
  color: #6B7280;
  font-size: 12px;
  line-height: 1.4;
}

.document-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.document-uploader {
  padding: 12px;
  border: 1px dashed #99C3EB;
  border-radius: 14px;
  background: linear-gradient(180deg, #F9FAFB, #FFFFFF);
}

.document-uploader-inline {
  margin-top: 14px;
}

.document-upload-help {
  display: block;
  margin-top: 8px;
  color: #6B7280;
  font-size: 11px;
  line-height: 1.4;
}

.document-item,
.pending-document-item {
  border-color: #CCE1F5;
  background: linear-gradient(180deg, #FFFFFF, #F9FAFB);
}

.document-status {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-title {
  margin: 14px 14px 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.sidebar-link {
  position: relative;
  margin: 2px 10px;
  border-radius: 12px;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sidebar-link::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #FF9800;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.sidebar-link.active {
  background: linear-gradient(135deg, #3387D7, #0052A3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 61, 122, 0.18);
}

.sidebar-link.active::before {
  opacity: 1;
}

.sidebar-toggle-arrow {
  transition: transform 0.18s ease;
}

.sidebar-group.is-open .sidebar-toggle-arrow {
  transform: rotate(90deg);
}

.sidebar.collapsed .sidebar-link {
  margin-inline: 8px;
}

.sidebar.collapsed .sidebar-link:hover {
  transform: none;
}

.help-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #CCE1F5;
  border-radius: 18px;
  background: linear-gradient(135deg, #FFFFFF, #E6F0FA);
  box-shadow: 0 12px 30px rgba(0, 41, 82, 0.06);
}

.help-profile-icon,
.role-guide-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #0052A3;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 14px;
}

.help-profile-card span,
.role-guide-card span,
.about-info-card span {
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.help-profile-card strong {
  display: block;
  margin-top: 2px;
  color: #002952;
  font-size: 18px;
}

.help-profile-card p {
  margin: 3px 0 0;
  color: #6B7280;
  font-size: 13px;
}

.role-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.role-guide-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #CCE1F5;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(0, 41, 82, 0.05);
}

.role-guide-card.is-current {
  border-color: #99C3EB;
  background: linear-gradient(180deg, #FFFFFF, #E6F0FA);
}

.role-guide-card h2 {
  margin: 3px 0 6px;
  color: #002952;
  font-size: 16px;
}

.role-guide-card p {
  margin: 0;
  color: #6B7280;
  font-size: 12px;
  line-height: 1.45;
}

.role-guide-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-guide-card li {
  display: flex;
  gap: 7px;
  color: #374151;
  font-size: 12px;
}

.role-guide-card li .icon {
  width: 14px;
  height: 14px;
  color: #00A859;
}

.help-flow-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.help-flow-list span {
  padding: 10px 8px;
  color: #0052A3;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.about-hero-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid #CCE1F5;
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 102, 204, 0.09), transparent 28%),
    linear-gradient(135deg, #FFFFFF, #E6F0FA);
  box-shadow: 0 16px 38px rgba(0, 41, 82, 0.07);
}

.about-logos {
  display: grid;
  grid-template-columns: minmax(90px, 120px) 1px minmax(130px, 180px);
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.about-logos span {
  width: 1px;
  height: 72px;
  background: #CCE1F5;
}

.about-logos img {
  width: 100%;
  max-height: 116px;
  object-fit: contain;
}

.about-copy span {
  color: #0052A3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-copy h2 {
  margin: 6px 0 8px;
  color: #002952;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.08;
}

.about-copy p {
  margin: 0;
  color: #6B7280;
  font-size: 14px;
  line-height: 1.5;
}

.about-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.about-info-card {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid #CCE1F5;
  border-radius: 18px;
  background: #FFFFFF;
}

.about-info-card strong {
  color: #002952;
  font-size: 15px;
  line-height: 1.35;
}

@media (max-width: 1280px) {
  .process-flow,
  .help-flow-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .role-guide-grid,
  .about-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-intro,
  .about-hero-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-user-card {
    min-width: 0;
  }

  .donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .history-page-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .history-page-date {
    grid-column: 2;
    grid-row: 1;
  }

  .history-page-date strong,
  .history-page-date span {
    text-align: left;
  }

  .history-page-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .history-page-content {
    grid-column: 2;
  }

  .history-page-item:not(:last-child)::before {
    left: 16px;
  }
}

@media (max-width: 720px) {
  .process-flow,
  .help-flow-list,
  .role-guide-grid,
  .about-info-grid {
    grid-template-columns: 1fr;
  }

  .about-logos {
    grid-template-columns: 1fr;
  }

  .about-logos span {
    width: 100%;
    height: 1px;
  }
}

/* Etapa 8 - modal de acompanhamento do processo */
.process-progress-modal {
  width: min(980px, calc(100vw - 36px));
  max-height: min(86vh, 760px);
  overflow: hidden;
  padding: 0;
}

.process-progress-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 72px 16px 24px;
  border-bottom: 1px solid #CCE1F5;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 102, 204, 0.12), transparent 30%),
    linear-gradient(135deg, #FFFFFF, #E6F0FA);
}

.process-progress-header > div {
  min-width: 0;
}

.process-progress-header h2 {
  margin: 4px 0 5px;
  color: #002952;
  font-size: 22px;
  line-height: 1.18;
}

.process-progress-header p {
  margin: 0;
  color: #6B7280;
  font-size: 13px;
}

.process-current-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  color: #0066CC;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  max-width: min(260px, 34vw);
  overflow-wrap: anywhere;
}

.process-progress-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid #E6F0FA;
  background: #F9FAFB;
}

.process-progress-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  color: #374151;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.process-progress-summary .icon {
  width: 14px;
  height: 14px;
  color: #0052A3;
}

@media (max-width: 720px) {
  .process-progress-header {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 64px;
  }

  .process-current-status {
    max-width: 100%;
  }
}

.process-exception-status {
  color: #E68900 !important;
  background: #FFF4DA !important;
  border-color: #FFE0A3 !important;
}

.process-progress-timeline {
  display: grid;
  max-height: calc(min(86vh, 760px) - 150px);
  overflow-y: auto;
  padding: 18px 24px 24px;
}

.process-progress-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
}

.process-progress-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 0;
  left: 18px;
  width: 2px;
  background: #CCE1F5;
}

.process-progress-step.is-done:not(:last-child)::before,
.process-progress-step.is-current:not(:last-child)::before {
  background: linear-gradient(180deg, #0066CC, #99C3EB);
}

.process-step-marker {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #66A5E1;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
}

.process-step-marker .icon {
  width: 17px;
  height: 17px;
}

.process-progress-step.is-done .process-step-marker {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0066CC, #3387D7);
  border-color: #0066CC;
  box-shadow: 0 8px 18px rgba(0, 102, 204, 0.22);
}

.process-progress-step.is-current .process-step-marker {
  color: #0066CC;
  background: #FFFFFF;
  border-color: #0066CC;
  box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.1);
}

.process-step-content {
  min-width: 0;
  padding: 14px;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF, #F9FAFB);
}

.process-progress-step.is-current .process-step-content {
  border-color: #99C3EB;
  background: linear-gradient(180deg, #FFFFFF, #E6F0FA);
}

.process-step-content header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.process-step-content header span {
  display: inline-flex;
  color: #0052A3;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.process-progress-step.is-pending .process-step-content header span {
  color: #66A5E1;
}

.process-step-content h3 {
  margin: 3px 0 0;
  color: #002952;
  font-size: 14px;
  line-height: 1.25;
}

.process-step-content time {
  color: #6B7280;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.process-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.process-step-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 26px;
  padding: 0 9px;
  overflow: hidden;
  color: #374151;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-step-meta .icon {
  width: 13px;
  height: 13px;
  color: #0052A3;
}

.process-step-content p {
  margin: 10px 0 0;
  padding: 9px 10px;
  color: #0066CC;
  background: #E6F0FA;
  border-left: 3px solid #FF9800;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.process-progress-step.is-pending {
  opacity: 0.78;
}

@media (max-width: 760px) {
  .process-progress-header {
    flex-direction: column;
  }

  .process-progress-timeline {
    padding: 14px;
  }

  .process-step-content header {
    flex-direction: column;
  }

  .process-step-content time {
    white-space: normal;
  }
}

/* Dashboard executivo CMIPcD */
.profile-button {
  min-width: 196px;
  height: 42px;
  gap: 9px;
  padding: 4px 8px 4px 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.profile-button:hover,
.profile-button.open {
  background: #E6F0FA;
  border-color: #CCE1F5;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.08);
}

.profile-initials {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  flex: 0 0 34px;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #0066CC, #3387D7);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 102, 204, 0.24);
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1;
  text-align: center !important;
}

.profile-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.12;
}

.profile-copy strong {
  color: #002952;
  font-size: 13px;
  font-weight: 700;
}

.profile-copy span {
  color: #6B7280 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.profile-copy small {
  display: block;
  max-width: 138px;
  overflow: hidden;
  color: #6B7280;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chevron {
  width: 16px;
  height: 16px;
  color: #6B7280;
}

.profile-menu {
  width: 238px;
  padding: 8px;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 41, 82, 0.16);
}

.profile-menu-header {
  gap: 10px;
  padding: 8px 8px 10px;
  border-bottom: 1px solid #E6F0FA;
}

.profile-menu-header .profile-initials {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.profile-menu-header strong {
  color: #002952;
  font-size: 13px;
  line-height: 1.2;
}

.profile-menu-header span:not(.profile-initials) {
  color: #6B7280;
  font-size: 11px;
  line-height: 1.35;
}

.profile-menu button {
  min-height: 36px;
  gap: 9px;
  padding: 0 9px;
  color: #374151;
  border-radius: 11px;
  font-size: 12px;
}

.profile-menu button .icon {
  width: 16px;
  height: 16px;
}

.view:has(.dashboard-hero) {
  display: grid;
  gap: 12px;
}

.dashboard-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  align-items: stretch;
  gap: 18px;
  min-height: 178px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(153, 195, 235, 0.42);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #0052A3 0%, #0066CC 48%, #3387D7 100%);
  box-shadow: 0 20px 46px rgba(0, 102, 204, 0.18);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: -60px auto auto 45%;
  width: 360px;
  height: 360px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.26), transparent 63%);
  border-radius: 999px;
}

.dashboard-hero-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-hero-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #0052A3;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dashboard-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(25px, 2.25vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.dashboard-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-hero-metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.dashboard-hero-metric span,
.dashboard-hero-metric strong,
.dashboard-hero-metric small {
  display: block;
}

.dashboard-hero-metric span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-hero-metric strong {
  margin-top: 6px;
  color: #FFFFFF;
  font-size: 30px;
  line-height: 1;
}

.dashboard-hero-metric small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.stats-grid {
  gap: 11px;
  margin-bottom: 0;
}

.stat-card {
  min-height: 92px;
  padding: 14px;
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(230, 240, 250, 0.94)),
    linear-gradient(90deg, var(--stat-main, #0052A3), transparent 36%);
  box-shadow: 0 12px 28px rgba(0, 41, 82, 0.065);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--stat-main, #0052A3);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 102, 204, 0.13);
}

.stat-card .stat-icon {
  width: 42px;
  height: 42px;
  color: var(--stat-main, #0052A3);
  background: var(--stat-bg, #E6F0FA);
  border-color: var(--stat-border, #CCE1F5);
  border-radius: 14px;
}

.stat-card span {
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.stat-card strong {
  margin-top: 4px;
  color: #002952;
  font-size: 29px;
}

.stat-card small {
  margin-top: 3px;
  color: #6B7280;
  font-size: 11.5px;
}

.stat-blue { --stat-main: #0066CC; --stat-bg: #E6F0FA; --stat-border: #CCE1F5; }
.stat-cyan { --stat-main: #0052A3; --stat-bg: #E6F0FA; --stat-border: #99C3EB; }
.stat-amber { --stat-main: #E68900; --stat-bg: #FFF4DA; --stat-border: #FFE0A3; }
.stat-green { --stat-main: #008040; --stat-bg: #ECFDF3; --stat-border: #D1FADF; }
.stat-purple { --stat-main: #0052A3; --stat-bg: #E6F0FA; --stat-border: #CCE1F5; }
.stat-sky { --stat-main: #3387D7; --stat-bg: #E6F0FA; --stat-border: #CCE1F5; }
.stat-teal { --stat-main: #008040; --stat-bg: #ECFDF3; --stat-border: #D1FADF; }

.dashboard-grid {
  gap: 12px;
  margin-bottom: 0;
}

.dashboard-chart-card {
  min-height: 282px;
  padding: 17px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 41, 82, 0.06);
}

.dashboard-chart-card .card-title-row {
  margin-bottom: 10px;
}

.dashboard-chart-card h2,
.process-flow-card h2 {
  font-size: 16px;
}

.donut-layout {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 204px;
}

.donut {
  width: 132px;
  animation: dashboardDonutIn 0.8s ease both;
}

.donut::after {
  inset: 38px;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: max-content;
  max-width: 240px;
  transform: translateX(-50%);
  padding: 7px 9px;
  color: #FFFFFF;
  background: rgba(0, 41, 82, 0.94);
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(0, 41, 82, 0.2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  pointer-events: none;
  white-space: normal;
}

.legend {
  gap: 6px;
}

.legend li {
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.legend li:hover {
  background: #E6F0FA;
  border-color: #CCE1F5;
}

.legend span {
  color: #374151;
  font-weight: 600;
}

.legend strong {
  color: #002952;
}

.bar-chart {
  height: 205px;
  gap: 16px;
  padding: 26px 8px 44px;
  background:
    linear-gradient(180deg, rgba(230, 240, 250, 0.7), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(to top, transparent 0, transparent 34px, #CCE1F5 35px);
}

.bar-chart-item {
  height: var(--h);
  min-height: 9px;
  background: linear-gradient(180deg, #66A5E1 0%, #0066CC 72%, #0052A3 100%);
  border-radius: 10px 10px 4px 4px;
  animation: dashboardBarRise 0.78s ease both;
  transform-origin: bottom;
}

.bar-chart-item:nth-child(2) { animation-delay: 0.05s; }
.bar-chart-item:nth-child(3) { animation-delay: 0.1s; }
.bar-chart-item:nth-child(4) { animation-delay: 0.15s; }
.bar-chart-item:nth-child(5) { animation-delay: 0.2s; }
.bar-chart-item:nth-child(6) { animation-delay: 0.25s; }

.bar-chart-item:hover {
  filter: saturate(1.12);
  box-shadow: 0 14px 24px rgba(0, 102, 204, 0.2);
}

.bar-chart-item b {
  top: -22px;
  color: #002952;
  font-size: 12px;
}

.bar-chart-item span {
  bottom: -25px;
  color: #002952;
  font-size: 11px;
  font-weight: 800;
}

.bar-chart-item small {
  bottom: -40px;
  max-width: 96px;
  color: #6B7280;
  font-size: 10.5px;
}

.process-flow-card {
  margin-bottom: 0;
  padding: 17px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 41, 82, 0.06);
}

.process-flow {
  position: relative;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 0;
  padding: 12px 6px 4px;
}

.process-flow::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, #0066CC, #3387D7, #FF9800);
  border-radius: 999px;
  opacity: 0.5;
}

.process-flow-step {
  border: 0;
  background: transparent;
  padding: 0 6px;
  transition: transform 0.16s ease;
}

.process-flow-step::after {
  display: none;
}

.process-flow-step:hover {
  transform: translateY(-2px);
}

.process-flow-icon {
  position: relative;
  z-index: 1;
  width: 46px !important;
  height: 46px !important;
  color: #0066CC;
  background: #FFFFFF !important;
  border: 2px solid #CCE1F5;
  border-radius: 999px !important;
  box-shadow: 0 10px 22px rgba(0, 102, 204, 0.14);
}

.process-flow-step:hover .process-flow-icon {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0066CC, #3387D7) !important;
  border-color: #0066CC;
}

.process-flow-step strong {
  margin-top: 7px;
  color: #374151;
  font-size: 11.5px;
}

.records-table-dashboard {
  min-height: 0;
}

.records-table-dashboard .dashboard-records-header {
  padding: 14px 14px 10px;
}

.records-table-dashboard .dashboard-table-scroll {
  max-height: 330px;
  overflow: auto;
}

.records-table-dashboard .dashboard-records-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #F9FAFB;
  box-shadow: 0 1px 0 #CCE1F5;
}

.records-table-dashboard .dashboard-records-table th,
.records-table-dashboard .dashboard-records-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.records-table-dashboard .beneficiary-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.records-table-dashboard .status {
  min-height: 25px;
  padding-inline: 9px;
}

@keyframes dashboardBarRise {
  from {
    transform: scaleY(0.12);
    opacity: 0.45;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes dashboardDonutIn {
  from {
    transform: scale(0.92) rotate(-10deg);
    opacity: 0.5;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@media (max-width: 1280px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process-flow {
    grid-template-columns: repeat(7, minmax(70px, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .process-flow::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .donut,
  .bar-chart-item {
    animation: none;
  }
}

/* Ajustes finos do Dashboard executivo */
.dashboard-status-chart .donut {
  width: 136px;
  background-color: #E6F0FA;
}

.dashboard-status-chart .donut::after {
  inset: 37px;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 102, 204, 0.08), transparent 42%),
    #FFFFFF;
  box-shadow:
    inset 0 0 0 1px rgba(204, 225, 245, 0.88),
    0 8px 20px rgba(0, 41, 82, 0.06);
}

.dashboard-status-chart .donut strong {
  color: #002952;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.dashboard-status-chart .donut span {
  margin-top: 2px;
  color: #0052A3;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.records-table-dashboard {
  align-self: start;
}

.records-table-dashboard .dashboard-records-header {
  padding: 12px 14px 9px;
}

.records-table-dashboard .dashboard-records-header h2 {
  font-size: 17px;
}

.records-table-dashboard .dashboard-records-header p {
  margin-top: 2px;
  font-size: 12px;
}

.records-table-dashboard .dashboard-table-scroll {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.records-table-dashboard .dashboard-records-table {
  table-layout: fixed;
}

.records-table-dashboard .dashboard-records-table th {
  height: 34px;
}

.records-table-dashboard .dashboard-records-table th,
.records-table-dashboard .dashboard-records-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.records-table-dashboard .dashboard-record-row {
  height: 56px;
}

.records-table-dashboard .beneficiary-cell {
  gap: 9px;
}

.records-table-dashboard .beneficiary-cell strong,
.records-table-dashboard .cras-cell strong,
.records-table-dashboard .date-cell strong {
  font-size: 12.5px;
}

.records-table-dashboard .beneficiary-cell small,
.records-table-dashboard .cras-cell small,
.records-table-dashboard .date-cell small {
  margin-top: 2px;
  font-size: 11px;
}

.records-table-dashboard .protocol-chip,
.records-table-dashboard .type-chip {
  min-height: 25px;
  padding-inline: 8px;
  font-size: 11px;
}

.records-table-dashboard .date-cell {
  width: 118px;
  text-align: left;
}

.records-table-dashboard .date-cell strong {
  color: #002952;
  font-weight: 750;
}

.records-table-dashboard .date-cell small {
  color: #6B7280;
}

.records-table-dashboard .action-dropdown-btn {
  min-width: 86px;
  min-height: 32px;
  padding-inline: 10px;
}

/* Revisão visual final do Dashboard CMIPcD */
.dashboard-status-chart .donut {
  position: relative;
  display: block;
  width: 140px;
  aspect-ratio: 1;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 41, 82, 0.04),
    0 12px 26px rgba(0, 102, 204, 0.1);
}

.dashboard-status-chart .donut::after {
  display: none;
}

.donut-center {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  align-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(204, 225, 245, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(0, 41, 82, 0.08);
  text-align: center;
}

.dashboard-status-chart .donut-center strong,
.dashboard-status-chart .donut-center span {
  position: static;
  z-index: 1;
  display: block;
  text-align: center;
}

.dashboard-status-chart .donut-center strong {
  color: #002952;
  font-size: 29px;
  font-weight: 800;
  line-height: 0.95;
}

.dashboard-status-chart .donut-center span {
  margin-top: 5px;
  color: #0052A3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.records-table-dashboard.dashboard-records-card {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.records-table-dashboard .dashboard-records-header {
  min-height: 0;
}

.records-table-dashboard .dashboard-table-scroll {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

.records-table-dashboard .dashboard-records-table {
  min-width: 0;
  table-layout: fixed;
}

.records-table-dashboard .dashboard-records-table .col-beneficiary { width: 25%; }
.records-table-dashboard .dashboard-records-table .col-protocol { width: 14%; }
.records-table-dashboard .dashboard-records-table .col-type { width: 9%; }
.records-table-dashboard .dashboard-records-table .col-cras { width: 16%; }
.records-table-dashboard .dashboard-records-table .col-status { width: 16%; }
.records-table-dashboard .dashboard-records-table .col-date { width: 12%; }
.records-table-dashboard .dashboard-records-table .col-actions { width: 8%; }

.records-table-dashboard .dashboard-records-table thead th {
  position: static;
  height: 32px;
}

.records-table-dashboard .dashboard-records-table th span {
  font-size: 10.5px;
}

.records-table-dashboard .dashboard-records-table td {
  height: 54px;
  vertical-align: middle;
}

.records-table-dashboard .dashboard-records-table th,
.records-table-dashboard .dashboard-records-table td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.records-table-dashboard .dashboard-record-row {
  height: auto;
}

.records-table-dashboard .beneficiary-avatar {
  width: 31px;
  height: 31px;
  font-size: 11px;
}

.records-table-dashboard .beneficiary-cell strong,
.records-table-dashboard .cras-cell strong,
.records-table-dashboard .date-cell strong {
  line-height: 1.15;
}

.records-table-dashboard .date-cell {
  width: auto;
  min-width: 0;
  text-align: left;
}

.records-table-dashboard .date-cell strong,
.records-table-dashboard .date-cell small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-table-dashboard .date-cell strong {
  font-size: 12px;
}

.records-table-dashboard .date-cell small {
  font-size: 10.5px;
}

.records-table-dashboard .dashboard-records-table .status {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}

.records-table-dashboard .dashboard-row-actions {
  overflow: visible;
}

.records-table-dashboard .action-dropdown-btn {
  min-width: 82px;
  min-height: 30px;
  font-size: 11px;
}

.records-table-dashboard .action-dropdown-menu {
  z-index: 30;
}

.records-table-dashboard .empty-state {
  padding: 18px;
}

@media (max-width: 1180px) {
  .records-table-dashboard .dashboard-table-scroll {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  .records-table-dashboard .dashboard-records-table {
    min-width: 920px;
  }
}

/* Correções observadas na revisão manual do Dashboard */
.action-dropdown-menu {
  display: none;
}

.row-actions.open .action-dropdown-menu {
  display: grid;
}

@media (min-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .stats-grid .stat-card {
    min-width: 0;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
  }

  .stats-grid .stat-icon {
    width: 39px;
    height: 39px;
  }

  .stats-grid .stat-card span {
    font-size: 11.5px;
  }

  .stats-grid .stat-card strong {
    font-size: 27px;
  }

  .stats-grid .stat-card small {
    font-size: 10.5px;
  }
}

/* Novo Cadastro - revisão institucional de UX/UI */
#cadastro-form.form-layout {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 14px;
  align-items: start;
  padding-bottom: 74px;
}

.cadastro-progress {
  --progress: 0%;
  position: sticky;
  top: 60px;
  z-index: 12;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
  padding: 10px 16px 9px;
  overflow: hidden;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 41, 82, 0.07);
  backdrop-filter: blur(12px);
  transition: border-radius 0.18s ease, box-shadow 0.18s ease;
}

.cadastro-progress.is-stuck {
  border-radius: 0 0 16px 16px;
  box-shadow: 0 14px 32px rgba(0, 102, 204, 0.12);
}

.cadastro-progress-line {
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  overflow: hidden;
  background: #CCE1F5;
  border-radius: 999px;
}

.cadastro-progress-line span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: linear-gradient(90deg, #0066CC, #3387D7, #FF9800);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.cadastro-progress-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #6B7280;
}

.cadastro-progress-step > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #6B7280;
  background: #F9FAFB;
  border: 2px solid #CCE1F5;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  transition: 0.18s ease;
}

.cadastro-progress-step strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cadastro-progress-step:hover > span,
.cadastro-progress-step.is-complete > span {
  color: #0052A3;
  background: #E6F0FA;
  border-color: #99C3EB;
}

.cadastro-progress-step.is-active {
  color: #002952;
}

.cadastro-progress-step.is-active > span {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0066CC, #3387D7);
  border-color: #0066CC;
  box-shadow: 0 7px 16px rgba(0, 102, 204, 0.22);
}

.cadastro-section {
  scroll-margin-top: 84px;
}

#cadastro-form .form-stack,
#cadastro-form .side-stack {
  gap: 12px;
}

#cadastro-form .side-stack {
  position: static;
  align-self: start;
  gap: 6px;
}

#cadastro-form .form-card,
#cadastro-form .side-card {
  padding: 13px;
  border-color: #CCE1F5;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 41, 82, 0.055);
}

#cadastro-form .form-card h2,
#cadastro-form .side-card h2 {
  color: #002952;
  font-size: 15px;
  line-height: 1.25;
}

#cadastro-form .form-card h2 > span {
  width: 25px;
  height: 25px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0066CC, #3387D7);
  border-radius: 9px;
  box-shadow: 0 6px 14px rgba(0, 102, 204, 0.18);
}

#cadastro-form .form-grid {
  gap: 10px 12px;
  margin-top: 13px;
}

#cadastro-form .field {
  gap: 5px;
}

#cadastro-form .field > span {
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

#cadastro-form .field > span b,
#cadastro-form .cras-highlight-heading b,
#cadastro-form .photo-form-card h2 b {
  color: #E11D48;
  font-style: normal;
  font-weight: 800;
}

#cadastro-form .field > span em {
  color: #6B7280;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

#cadastro-form .field input,
#cadastro-form .field select,
#cadastro-form .field textarea {
  min-height: 40px;
  border: 1px solid #99C3EB;
  border-radius: 11px;
  background-color: #FFFFFF;
  font-size: 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

#cadastro-form .field input:hover,
#cadastro-form .field select:hover,
#cadastro-form .field textarea:hover {
  border-color: #99C3EB;
}

#cadastro-form .field input:focus,
#cadastro-form .field select:focus,
#cadastro-form .field textarea:focus {
  border-color: #3387D7;
  background-color: #F9FAFB;
  box-shadow: 0 0 0 3px rgba(51, 135, 215, 0.11);
  outline: 0;
}

#cadastro-form .field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2356677a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
}

#cadastro-form .field textarea {
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
}

.field-help {
  display: block;
  color: #6B7280;
  font-size: 10.5px;
  font-weight: 450;
  line-height: 1.35;
}

.field-control-with-status {
  position: relative;
}

.field-control-with-status input {
  padding-right: 36px !important;
}

.cep-loading {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 15px;
  height: 15px;
  display: none;
  margin-top: -7px;
  border: 2px solid #CCE1F5;
  border-top-color: #0066CC;
  border-radius: 999px;
  animation: cepSpin 0.7s linear infinite;
}

.cep-field.is-loading .cep-loading {
  display: block;
}

.cep-field.is-loading #cep-feedback {
  color: #0052A3;
}

.cep-field.is-success input {
  border-color: #00A859 !important;
  background: #ECFDF3 !important;
}

.cep-field.is-success #cep-feedback {
  color: #008040;
}

.cep-field.is-error input {
  border-color: #FFE4E6 !important;
  background: #FFF1F2 !important;
}

.cep-field.is-error #cep-feedback {
  color: #E11D48;
}

.cras-highlight {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  align-items: center;
  gap: 14px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid #99C3EB;
  border-left: 4px solid #0066CC;
  border-radius: 13px;
  background: linear-gradient(135deg, #E6F0FA, #F9FAFB);
}

.cras-highlight-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cras-highlight-heading > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  color: #0052A3;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 12px;
}

.cras-highlight-heading .icon {
  width: 18px;
  height: 18px;
}

.cras-highlight-heading strong,
.cras-highlight-heading small {
  display: block;
}

.cras-highlight-heading strong {
  color: #002952;
  font-size: 13px;
}

.cras-highlight-heading small {
  margin-top: 3px;
  color: #6B7280;
  font-size: 10.5px;
  line-height: 1.35;
}

.photo-form-card > p {
  margin: 3px 0 0;
  color: #6B7280;
  font-size: 10px;
}

#cadastro-form .upload-box {
  position: relative;
  min-height: 104px;
  margin-top: 7px;
  padding: 10px;
  overflow: hidden;
  border: 1.5px dashed #99C3EB;
  border-radius: 14px;
  background: linear-gradient(180deg, #F9FAFB, #FFFFFF);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

#cadastro-form .upload-box:hover {
  border-color: #3387D7;
  background: #E6F0FA;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.08);
}

#foto-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
}

#foto-empty .icon {
  width: 30px;
  height: 30px;
  color: #0066CC;
  padding: 7px;
  background: #E6F0FA;
  border-radius: 13px;
}

#foto-empty strong {
  color: #002952;
  font-size: 11.5px;
}

#foto-empty small {
  color: #6B7280;
  font-size: 10px;
}

#cadastro-form .upload-box img {
  width: 92px;
  height: 116px;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 41, 82, 0.14);
}

.photo-success {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  color: #008040;
  background: rgba(236, 253, 243, 0.96);
  border: 1px solid #D1FADF;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
}

.photo-success .icon {
  width: 13px;
  height: 13px;
}

.documents-form-card .documents-panel-header > span {
  width: 30px;
  height: 30px;
}

.documents-form-card .documents-panel-header h2 {
  font-size: 13.5px !important;
}

.documents-form-card .documents-panel-header p {
  font-size: 10px;
}

.documents-form-card .document-status-legend {
  gap: 5px;
  margin-top: 7px;
}

.documents-form-card .document-status {
  min-height: 19px;
  padding-inline: 6px;
  font-size: 9.5px;
}

.terms-quick-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 9px;
  border: 1px dashed #9BC8F2;
  border-radius: 12px;
  background: #F5FAFF;
}

.terms-quick-actions strong,
.terms-quick-actions small {
  display: block;
}

.terms-quick-actions strong {
  color: var(--ink);
  font-size: 11px;
}

.terms-quick-actions small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.terms-quick-actions-inline {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: center;
  margin-bottom: 12px;
}

.terms-modal-actions {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px dashed #9BC8F2;
  border-radius: 12px;
  background: #F5FAFF;
}

.terms-modal-actions small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.term-checkbox-line {
  align-items: flex-start;
  width: 100%;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #D6E8FA;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.term-checkbox-line.field-error {
  border-color: var(--danger);
  background: #FFF5F5;
}

.documents-form-card .document-uploader {
  gap: 7px;
  margin-top: 7px;
  padding: 6px;
  border-radius: 12px;
}

.documents-form-card .document-upload-button {
  min-height: 34px;
  font-size: 10.5px;
}

.documents-form-card .document-upload-help {
  margin-top: 5px;
  font-size: 9.5px;
}

.documents-form-card .pending-documents-list {
  gap: 6px;
  margin-top: 8px;
}

.documents-form-card .pending-document-item {
  grid-template-columns: 30px minmax(0, 1fr) auto 28px;
  gap: 7px;
  padding: 8px;
  border-radius: 11px;
}

.documents-form-card .pending-document-item strong {
  font-size: 11px;
}

.documents-form-card .pending-document-item small {
  font-size: 9.5px;
}

.documents-form-card .documents-empty {
  padding: 7px;
  font-size: 10.5px;
}

#cadastro-form .form-actions {
  gap: 8px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #CCE1F5;
  border-radius: 15px 15px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 26px rgba(0, 41, 82, 0.07);
  backdrop-filter: blur(10px);
}

#cadastro-form .form-actions .btn {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 12px;
}

@keyframes cepSpin {
  to { transform: rotate(360deg); }
}

/* Usuários e Permissões */
.user-access-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.user-access-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(0, 41, 82, 0.055);
}

.user-access-metric > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  color: #0052A3;
  background: #E6F0FA;
  border-radius: 13px;
}

.user-access-metric .icon {
  width: 19px;
  height: 19px;
}

.user-access-metric strong,
.user-access-metric small,
.user-access-metric em {
  display: block;
}

.user-access-metric strong {
  color: #002952;
  font-size: 24px;
  line-height: 1;
}

.user-access-metric small {
  margin-top: 3px;
  color: #374151;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.user-access-metric em {
  margin-top: 2px;
  color: #6B7280;
  font-size: 10.5px;
  font-style: normal;
}

.users-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 1fr) minmax(180px, .9fr) minmax(130px, .65fr);
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #CCE1F5;
  background: linear-gradient(180deg, #F9FAFB, #E6F0FA);
}

.user-access-header-actions,
.user-unit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.user-unit-actions .row-actions {
  width: auto;
}

.user-unit-actions .action-dropdown-btn {
  min-width: 112px;
}

.users-filter-bar .field {
  gap: 5px;
}

.users-filter-bar .field span {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
}

.users-filter-bar input,
.users-filter-bar select {
  min-height: 38px;
  border: 1px solid #99C3EB;
  border-radius: 12px;
  background-color: #FFFFFF;
  font-size: 12px;
}

.users-filter-bar select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2356677a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 14px;
}

.user-access-table .col-user { width: 27%; }
.user-access-table .col-unit { width: 25%; }
.user-access-table .col-profile { width: 20%; }
.user-access-table .col-status { width: 9%; }
.user-access-table .col-date { width: 12%; }
.user-access-table .col-actions { width: 7%; }

.users-filter-empty {
  margin: 12px;
}

.user-access-modal {
  max-width: 760px;
}

.user-access-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.user-access-form-grid .span-2 {
  grid-column: span 2;
}

.modal-note {
  margin-top: 14px;
  padding: 12px 14px;
  color: #374151;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.45;
}

.recovery-policy-note {
  margin: 0 0 14px;
}

.password-reset-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #BAE7D0;
  border-radius: 8px;
  background: #ECFDF3;
  color: #005A2D;
}

.password-reset-summary > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #D8F8E7;
}

.password-reset-summary .icon {
  width: 20px;
  height: 20px;
}

.password-reset-summary strong,
.password-reset-summary small {
  display: block;
}

.password-reset-summary strong {
  color: #003D1F;
}

.password-reset-summary small {
  margin-top: 2px;
  color: #1D6B45;
  font-size: 12px;
  line-height: 1.35;
}

.password-inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.password-inline-control .btn-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #B7D7F7;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0057B8;
}

.password-inline-control .btn-icon:hover {
  background: #EAF4FF;
}

@media (max-width: 1180px) {
  #cadastro-form.form-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .cras-highlight {
    grid-template-columns: 1fr;
  }

  .user-access-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  #cadastro-form.form-layout {
    grid-template-columns: 1fr;
  }

  .cadastro-progress {
    overflow-x: auto;
  }

  .cadastro-progress-step {
    min-width: 128px;
  }

  #cadastro-form .side-stack {
    position: static;
    grid-row: auto;
  }

  .user-access-summary,
  .users-filter-bar,
  .user-access-form-grid {
    grid-template-columns: 1fr;
  }

  .user-access-form-grid .span-2 {
    grid-column: auto;
  }
}

/* Listar Cadastros - visão institucional e operacional */
.records-list-toolbar {
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border-color: #CCE1F5;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF, #F9FAFB);
  box-shadow: 0 10px 28px rgba(0, 61, 122, 0.06);
}

.records-list-toolbar .toolbar-search {
  position: relative;
  min-width: 280px;
}

.records-list-toolbar .toolbar-search input {
  height: 42px;
  padding-left: 42px;
  border-color: #CCE1F5;
  background: #FFFFFF;
  font-size: 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.records-list-toolbar .toolbar-search input:hover {
  border-color: #99C3EB;
  background: #F9FAFB;
}

.records-list-toolbar .toolbar-search input:focus {
  border-color: #3387D7;
  box-shadow: 0 0 0 4px rgba(51, 135, 215, 0.1);
  outline: 0;
}

.toolbar-control-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: #3387D7;
  pointer-events: none;
  transform: translateY(-50%);
}

.toolbar-control-icon .icon {
  width: 17px;
  height: 17px;
}

.records-list-toolbar .filter-select {
  width: clamp(150px, 13vw, 205px);
}

.records-list-toolbar .filter-select-button {
  height: 42px;
  padding-inline: 12px;
  border-color: #CCE1F5;
  box-shadow: none;
  font-size: 12.5px;
}

.filter-select-leading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.filter-select-leading > .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #3387D7;
}

.filter-select-leading [data-filter-label] {
  min-width: 0;
  overflow: hidden;
  color: #374151;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-select-button > .icon {
  flex: 0 0 15px;
}

.filter-select.open .filter-select-leading > .icon {
  transform: none;
}

.records-table-lista .dashboard-records-header {
  padding-bottom: 11px;
}

.records-table-lista .dashboard-records-meta > span {
  color: #0052A3;
  background: #E6F0FA;
  border-color: #CCE1F5;
  font-weight: 700;
}

.records-list-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 12px;
  border-bottom: 1px solid #CCE1F5;
}

.records-list-summary-item {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #0052A3;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 10px;
}

.records-list-summary-item .icon {
  width: 15px;
  height: 15px;
}

.records-list-summary-item small {
  overflow: hidden;
  color: #0066CC;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-list-summary-item strong {
  color: #002952;
  font-size: 15px;
  line-height: 1;
}

.records-list-summary-item.is-navy {
  color: #0052A3;
  background: #E6F0FA;
}

.records-list-summary-item.is-warning {
  color: #E68900;
  background: #FFF4DA;
  border-color: #FFE0A3;
}

.records-list-summary-item.is-success {
  color: #008040;
  background: #ECFDF3;
  border-color: #D1FADF;
}

.records-list-summary-item.is-danger {
  color: #E11D48;
  background: #FFF1F2;
  border-color: #FFF1F2;
}

.reports-classification-summary {
  margin-bottom: 14px;
  padding: 0;
  border-bottom: 0;
}

.records-table-lista .dashboard-records-table {
  min-width: 1068px;
}

@media (min-width: 1200px) {
  .records-table-lista .dashboard-table-scroll {
    overflow: visible;
  }
}

.records-table-lista .dashboard-records-table .col-beneficiary { width: 21%; }
.records-table-lista .dashboard-records-table .col-protocol { width: 13%; }
.records-table-lista .dashboard-records-table .col-type { width: 8%; }
.records-table-lista .dashboard-records-table .col-cras { width: 14%; }
.records-table-lista .dashboard-records-table .col-status { width: 15%; }
.records-table-lista .dashboard-records-table .col-entry { width: 9%; }
.records-table-lista .dashboard-records-table .col-date { width: 12%; }
.records-table-lista .dashboard-records-table .col-actions { width: 8%; }

.records-table-lista .dashboard-records-table thead th {
  padding: 10px 11px;
  background: #E6F0FA;
}

.records-table-lista .dashboard-records-table tbody td {
  height: 66px;
  padding: 9px 11px;
}

.records-table-lista .dashboard-records-table th:nth-child(5),
.records-table-lista .dashboard-records-table td:nth-child(5) {
  padding-inline: 6px;
}

.records-table-lista .beneficiary-cell {
  align-items: flex-start;
  gap: 10px;
}

.records-table-lista .beneficiary-avatar {
  margin-top: 1px;
}

.records-table-lista .beneficiary-cell strong {
  display: -webkit-box;
  max-height: 32px;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.records-table-lista .beneficiary-cell small {
  margin-top: 4px;
  font-size: 11px;
}

.records-table-lista .entry-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.records-table-lista .date-cell {
  width: 100%;
  margin: 0;
  text-align: center;
}

.records-table-lista .date-cell strong {
  font-size: 12px;
  white-space: nowrap;
}

.records-table-lista .date-cell small {
  font-size: 10px;
  white-space: nowrap;
}

.records-table-lista .dashboard-records-table .status {
  min-height: 27px;
  padding-inline: 9px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 5px 13px rgba(0, 61, 122, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  font-size: 10.5px;
  white-space: nowrap;
}

.records-table-lista .dashboard-records-table .status::before {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 3px currentColor;
  opacity: 0.75;
}

.records-table-lista .action-dropdown-btn {
  min-width: 82px;
  height: 30px;
  padding-inline: 10px;
  font-size: 11px;
}

.records-table-lista .action-dropdown-menu,
.records-table-analise .action-dropdown-menu,
.records-table-cras .action-dropdown-menu,
.cras-waiting-table .action-dropdown-menu {
  width: 252px;
  max-height: min(45vh, 340px);
  padding: 7px;
  overflow-y: auto;
  border-radius: 15px;
}

/* Perfil mensal */
.monthly-profile-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(0, 61, 122, 0.08);
}

.monthly-profile-filters .field {
  margin: 0;
}

.monthly-profile-filters .btn {
  min-height: 44px;
  white-space: nowrap;
}

.report-period-filters {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) auto;
}

.report-period-note {
  min-width: 0;
  padding: 8px 12px;
  border-left: 3px solid #0066CC;
}

.report-period-note small {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.report-period-note strong {
  display: block;
  color: #003D7A;
  font-size: 15px;
}

.report-period-note p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 12px;
}

.monthly-profile-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.monthly-profile-metric {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 12px 28px rgba(0, 61, 122, 0.08);
}

.monthly-profile-metric > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #E6F0FA;
  color: #0052A3;
}

.monthly-profile-metric .icon {
  width: 20px;
  height: 20px;
}

.monthly-profile-metric small,
.monthly-profile-metric p {
  display: block;
  color: #5D7285;
  font-size: 12px;
}

.monthly-profile-metric strong {
  display: block;
  overflow: hidden;
  color: #003D7A;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-profile-metric p {
  margin: 2px 0 0;
}

.monthly-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-bottom: 18px;
}

.monthly-profile-card {
  min-width: 0;
}

.monthly-profile-bars,
.monthly-profile-list {
  display: grid;
  gap: 10px;
}

.monthly-profile-bar-row {
  display: grid;
  grid-template-columns: minmax(104px, 0.9fr) minmax(96px, 1.4fr) 34px;
  gap: 10px;
  align-items: center;
}

.monthly-profile-bar-row span {
  overflow: hidden;
  color: #003D7A;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-profile-bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #E6F0FA;
}

.monthly-profile-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0052A3, #1AA383);
}

.monthly-profile-bar-row b {
  color: #003D7A;
  font-size: 12px;
  text-align: right;
}

.monthly-profile-list article {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #E6F0FA;
}

.monthly-profile-list article:last-child {
  border-bottom: 0;
}

.monthly-profile-list strong,
.monthly-profile-list small {
  display: block;
}

.monthly-profile-list strong {
  color: #003D7A;
  font-size: 13px;
}

.monthly-profile-list small,
.monthly-profile-empty {
  color: #5D7285;
  font-size: 12px;
}

.monthly-profile-list span {
  display: inline-flex;
  min-width: 34px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #E6F0FA;
  color: #0052A3;
  font-size: 12px;
  font-weight: 900;
}

.monthly-profile-records .dashboard-records-table {
  min-width: 980px;
}

.monthly-profile-table th,
.monthly-profile-table td {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .monthly-profile-filters,
  .monthly-profile-summary,
  .monthly-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .monthly-profile-filters,
  .monthly-profile-summary,
  .monthly-profile-grid {
    grid-template-columns: 1fr;
  }

  .monthly-profile-filters .btn {
    width: 100%;
  }

  .monthly-profile-bar-row {
    grid-template-columns: minmax(92px, 1fr) minmax(90px, 1.2fr) 30px;
  }
}

.action-menu-group {
  display: grid;
  gap: 2px;
  padding: 3px 0 6px;
}

.action-menu-group + .action-menu-group {
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px solid #CCE1F5;
}

.action-menu-label {
  padding: 2px 10px 4px;
  color: #3387D7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action-menu-group button {
  min-height: 34px;
  font-size: 12px;
}

.action-menu-group button .icon {
  color: #3387D7;
}

.action-menu-group:last-child button[data-action="delete"],
.action-menu-group:last-child button[data-status="Cancelado"] {
  color: #E11D48;
}

@media (max-width: 1180px) {
  .records-list-toolbar .toolbar-search {
    flex-basis: 100%;
  }

  .records-list-toolbar .toolbar-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .records-list-toolbar .filter-select {
    width: auto;
  }

  .records-table-lista .dashboard-records-table {
    min-width: 1068px;
  }
}

@media (max-width: 760px) {
  .records-list-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .records-list-toolbar .toolbar-filters {
    grid-template-columns: 1fr;
  }
}

/* Identidade institucional CMIPcD */
.sidebar-brand div {
  min-width: 0;
}

.sidebar-brand strong {
  letter-spacing: 0.01em;
}

.sidebar-brand span {
  max-width: 150px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.login-showcase h1 {
  font-size: clamp(44px, 4.2vw, 58px);
  letter-spacing: 0;
}

.login-showcase h2 {
  max-width: 320px;
  margin-inline: auto;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.12;
}

.login-showcase strong {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.18;
}

.login-showcase-main > p:first-of-type {
  font-size: 16px;
  font-weight: 600;
}

.login-mission {
  max-width: 310px;
  margin-inline: auto;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 18px;
  color: #6B7280;
  font-size: 12px;
  line-height: 1.4;
}

.app-footer strong {
  color: #0066CC;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.app-footer i {
  width: 1px;
  height: 14px;
  background: #99C3EB;
}

@media (max-width: 1366px) {
  .sidebar-brand span {
    max-width: 132px;
    font-size: 0.66rem;
  }

  .login-showcase h2 {
    max-width: 285px;
    font-size: 18px;
  }

  .app-footer {
    padding-bottom: 12px;
  }
}

/* Acessibilidade e segurança operacional */
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #FF9800;
  outline-offset: 3px;
}

.form-validation-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 13px 15px;
  color: #9F1239;
  background: #FFF1F2;
  border: 1px solid #FDA4AF;
  border-left: 4px solid #E11D48;
  border-radius: 8px;
}

.form-validation-summary strong,
.form-validation-summary span {
  display: block;
}

.form-validation-summary strong {
  font-size: 13px;
}

.form-validation-summary span {
  font-size: 12px;
  line-height: 1.4;
}

.field-validation-message {
  display: block;
  color: #E11D48;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.field-error > span:first-child {
  color: #BE123C;
}

.upload-box[aria-invalid="true"] {
  border-color: #E11D48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.confirmation-layer {
  z-index: 120;
}

.confirmation-modal {
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px 16px;
  padding: 22px;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
}

.confirmation-modal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #0066CC;
  background: #E6F0FA;
  border-radius: 8px;
}

.confirmation-modal-icon.is-danger {
  color: #E11D48;
  background: #FFF1F2;
}

.confirmation-modal-copy {
  min-width: 0;
}

.confirmation-modal-copy h2 {
  margin: 0;
  color: #002952;
  font-size: 18px;
  line-height: 1.25;
}

.confirmation-modal-copy p {
  margin: 7px 0 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
}

.confirmation-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.operational-empty-state {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
}

.operational-empty-state > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #0066CC;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
}

.operational-empty-state > span .icon {
  width: 22px;
  height: 22px;
}

.operational-empty-state strong {
  color: #002952;
  font-size: 14px;
}

.operational-empty-state small {
  max-width: 440px;
  color: #6B7280;
  font-size: 12px;
  line-height: 1.45;
}

.cadastro-timeline-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #9F1239;
  background: #FFF1F2;
  border: 1px solid #FDA4AF;
  border-radius: 8px;
}

.cadastro-timeline-alert .icon {
  flex: 0 0 auto;
}

.cadastro-timeline-alert strong,
.cadastro-timeline-alert small {
  display: block;
}

.cadastro-timeline-alert strong {
  font-size: 12px;
}

.cadastro-timeline-alert small {
  margin-top: 2px;
  color: #374151;
  font-size: 10px;
}

.cadastro-mini-timeline-track {
  grid-template-columns: repeat(11, minmax(112px, 1fr));
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
}

.cadastro-mini-timeline-track article {
  scroll-snap-align: start;
}


/* Controle de senha por usuário e unidade */
.managed-password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: stretch;
  gap: 6px;
}

.managed-password-control .icon-button {
  width: 42px;
  min-width: 42px;
  height: auto;
  min-height: 42px;
  border: 1px solid #99C3EB;
  background: #FFFFFF;
  color: #003D7A;
}

.managed-password-control .icon-button:hover {
  background: #E6F0FA;
}

.managed-password-control input[readonly] {
  background: #F3F4F6;
  color: #374151;
}

@media (max-width: 640px) {
  #user-password-form.user-access-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  #cadastro-form .form-actions {
    flex-wrap: wrap;
  }

  #cadastro-form .form-actions .btn {
    flex: 1 1 180px;
  }

  .confirmation-modal {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 18px;
  }

  .confirmation-modal-icon {
    width: 40px;
    height: 40px;
  }

  .confirmation-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .confirmation-modal-actions .btn {
    width: 100%;
  }

  .cadastro-mini-timeline {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Central de Análise CMIPcD */
.analysis-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.analysis-summary-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 41, 82, 0.07);
}

.analysis-summary-card > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.analysis-summary-card .icon {
  width: 21px;
  height: 21px;
}

.analysis-summary-card small,
.analysis-summary-card p {
  color: #6B7280;
  font-size: 12px;
  line-height: 1.25;
}

.analysis-summary-card strong {
  display: block;
  margin: 2px 0;
  color: #002952;
  font-size: 28px;
  line-height: 1;
}

.analysis-summary-card p {
  margin: 0;
}

.analysis-summary-card.is-blue > span {
  color: #0066CC;
  background: #E6F0FA;
}

.analysis-summary-card.is-amber > span {
  color: #E68900;
  background: #FFF4DA;
}

.analysis-summary-card.is-green > span {
  color: #008040;
  background: #ECFDF3;
}

.analysis-summary-card.is-sky > span {
  color: #0052A3;
  background: #CCE1F5;
}

.analysis-action-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #CCE1F5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 102, 204, 0.12), transparent 34%),
    linear-gradient(135deg, #FFFFFF, #E6F0FA);
  box-shadow: 0 14px 34px rgba(0, 102, 204, 0.08);
}

.analysis-action-copy h2 {
  margin: 4px 0 6px;
  color: #002952;
  font-size: 20px;
}

.analysis-action-copy p,
.analysis-action-empty {
  margin: 0;
  color: #6B7280;
  font-size: 13px;
}

.analysis-action-list {
  display: grid;
  gap: 8px;
}

.analysis-action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #CCE1F5;
  border-radius: 14px;
}

.analysis-action-item strong,
.analysis-action-item small {
  display: block;
  min-width: 0;
}

.analysis-action-item strong {
  color: #002952;
  font-size: 13px;
}

.analysis-action-item small {
  margin-top: 2px;
  color: #6B7280;
  font-size: 12px;
}

.records-table-analise .dashboard-records-table {
  min-width: 1080px;
}

.records-table-analise .col-beneficiary {
  width: 22%;
}

.records-table-analise .col-protocol {
  width: 13%;
}

.records-table-analise .col-type {
  width: 8%;
}

.records-table-analise .col-cras {
  width: 14%;
}

.records-table-analise .col-status {
  width: 14%;
}

.records-table-analise .col-stay {
  width: 12%;
}

.records-table-analise .col-date {
  width: 10%;
}

.records-table-analise .col-actions {
  width: 7%;
}

.records-table-analise tbody td {
  padding-block: 9px;
}

.analysis-record-row.is-actionable td:first-child {
  box-shadow: inset 3px 0 0 #0066CC;
}

.analysis-stay-badge {
  min-width: 112px;
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}

.analysis-stay-badge strong {
  font-size: 11px;
  font-weight: 800;
}

.analysis-stay-badge small {
  font-size: 10px;
  font-weight: 700;
}

.analysis-stay-badge.is-ok {
  color: #008040;
  background: #ECFDF3;
  border-color: #D1FADF;
}

.analysis-stay-badge.is-attention {
  color: #E68900;
  background: #FFF4DA;
  border-color: #FFE0A3;
}

.analysis-stay-badge.is-exceeded {
  color: #E11D48;
  background: #FFF1F2;
  border-color: #FFF1F2;
}

/* Ficha institucional do beneficiário */
.cadastro-detail-modal {
  width: min(1180px, calc(100vw - 42px));
  max-height: min(92vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(204, 225, 245, 0.95);
  border-radius: 22px;
  background: #FFFFFF;
}

.cadastro-detail-header {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 16px;
  background:
    radial-gradient(circle at 6% 0%, rgba(0, 102, 204, 0.14), transparent 30%),
    linear-gradient(135deg, #FFFFFF 0%, #E6F0FA 100%);
  border-bottom: 1px solid #CCE1F5;
}

.cadastro-detail-photo {
  width: 92px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #0066CC;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
}

.cadastro-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cadastro-detail-photo .icon {
  width: 34px;
  height: 34px;
}

.cadastro-detail-title h2 {
  margin: 4px 0 8px;
  color: #002952;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
}

.cadastro-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cadastro-detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #374151;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
  font-size: 12px;
}

.cadastro-detail-status {
  align-self: start;
  padding-right: 34px;
}

.cadastro-quick-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 24px;
  background: #F9FAFB;
  border-bottom: 1px solid #E6F0FA;
}

.cadastro-quick-summary article {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 14px;
}

.cadastro-quick-summary .icon {
  width: 17px;
  height: 17px;
  color: #0066CC;
}

.cadastro-quick-summary span {
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
}

.cadastro-quick-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #002952;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.cadastro-detail-tabs {
  position: relative;
  padding: 0 24px 14px;
}

.detail-tab-control {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cadastro-detail-tab-nav {
  display: flex;
  gap: 8px;
  padding: 14px 0 10px;
  overflow-x: auto;
}

.cadastro-detail-tab-nav label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: #374151;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.cadastro-detail-tab-nav .icon {
  width: 15px;
  height: 15px;
}

.detail-tab-control:nth-of-type(1):checked ~ .cadastro-detail-tab-nav label:nth-child(1),
.detail-tab-control:nth-of-type(2):checked ~ .cadastro-detail-tab-nav label:nth-child(2),
.detail-tab-control:nth-of-type(3):checked ~ .cadastro-detail-tab-nav label:nth-child(3),
.detail-tab-control:nth-of-type(4):checked ~ .cadastro-detail-tab-nav label:nth-child(4),
.detail-tab-control:nth-of-type(5):checked ~ .cadastro-detail-tab-nav label:nth-child(5) {
  color: #FFFFFF;
  background: #0066CC;
  border-color: #0066CC;
  box-shadow: 0 10px 22px rgba(0, 102, 204, 0.18);
}

.cadastro-detail-tab-panels {
  max-height: min(34vh, 310px);
  overflow-y: auto;
  padding: 2px 2px 6px;
}

.cadastro-tab-panel {
  display: none;
}

.detail-tab-control:nth-of-type(1):checked ~ .cadastro-detail-tab-panels .panel-personal,
.detail-tab-control:nth-of-type(2):checked ~ .cadastro-detail-tab-panels .panel-contact,
.detail-tab-control:nth-of-type(3):checked ~ .cadastro-detail-tab-panels .panel-disability,
.detail-tab-control:nth-of-type(4):checked ~ .cadastro-detail-tab-panels .panel-documents,
.detail-tab-control:nth-of-type(5):checked ~ .cadastro-detail-tab-panels .panel-process {
  display: block;
}

.cadastro-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.cadastro-detail-grid div,
.cadastro-document-card {
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 14px;
}

.cadastro-detail-grid .span-2 {
  grid-column: span 2;
}

.cadastro-detail-grid dt {
  color: #6B7280;
  font-size: 11px;
  font-weight: 750;
}

.cadastro-detail-grid dd {
  margin: 5px 0 0;
  color: #002952;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.cadastro-documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cadastro-document-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
}

.cadastro-document-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #0066CC;
  background: #E6F0FA;
  border-radius: 12px;
}

.cadastro-document-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cadastro-document-card strong,
.cadastro-document-card small {
  display: block;
  min-width: 0;
}

.cadastro-document-card strong {
  color: #002952;
  font-size: 13px;
}

.cadastro-document-card small {
  margin-top: 2px;
  overflow: hidden;
  color: #6B7280;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cadastro-document-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.cadastro-document-actions button,
.cadastro-document-actions a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #0052A3;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.cadastro-document-actions button:disabled {
  color: #9CA3AF;
  background: #F3F4F6;
  border-color: #E5E7EB;
  cursor: not-allowed;
}

.cadastro-mini-timeline {
  padding: 0 24px 20px;
}

.cadastro-mini-timeline-title {
  margin-bottom: 10px;
}

.cadastro-mini-timeline-title h3 {
  margin: 2px 0 0;
  color: #002952;
  font-size: 15px;
}

.cadastro-mini-timeline-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  overflow-x: auto;
}

.cadastro-mini-timeline-track article {
  position: relative;
  min-width: 112px;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0 8px;
  text-align: center;
}

.cadastro-mini-timeline-track article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: #CCE1F5;
}

.cadastro-mini-timeline-track article.is-done:not(:last-child)::after {
  background: linear-gradient(90deg, #0066CC, #99C3EB);
}

.cadastro-mini-timeline-track article > span {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #9CA3AF;
  background: #F3F4F6;
  border: 2px solid #E5E7EB;
  border-radius: 999px;
}

.cadastro-mini-timeline-track article.is-done > span,
.cadastro-mini-timeline-track article.is-current > span {
  color: #FFFFFF;
  background: #0066CC;
  border-color: #0066CC;
}

.cadastro-mini-timeline-track strong {
  color: #002952;
  font-size: 11px;
  line-height: 1.2;
}

.cadastro-mini-timeline-track small {
  color: #6B7280;
  font-size: 10px;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .analysis-summary-grid,
  .cadastro-quick-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-action-panel,
  .cadastro-detail-header {
    grid-template-columns: 1fr;
  }

  .cadastro-detail-status {
    padding-right: 42px;
  }
}

@media (max-width: 760px) {
  .analysis-summary-grid,
  .cadastro-detail-grid,
  .cadastro-documents-grid {
    grid-template-columns: 1fr;
  }

  .cadastro-detail-grid .span-2 {
    grid-column: auto;
  }

  .analysis-action-item {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Painel gerencial por CRAS */
.cras-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.cras-kpi-card {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 15px;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 41, 82, 0.07);
}

.cras-kpi-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.cras-kpi-card .icon {
  width: 19px;
  height: 19px;
}

.cras-kpi-card small,
.cras-kpi-card p {
  display: block;
  color: #6B7280;
  font-size: 11px;
  line-height: 1.25;
}

.cras-kpi-card strong {
  display: block;
  margin: 3px 0;
  color: #002952;
  font-size: 23px;
  line-height: 1.05;
}

.cras-kpi-card p {
  margin: 0;
}

.cras-kpi-card.is-blue > span { color: #0066CC; background: #E6F0FA; }
.cras-kpi-card.is-sky > span { color: #0052A3; background: #CCE1F5; }
.cras-kpi-card.is-green > span { color: #008040; background: #ECFDF3; }
.cras-kpi-card.is-amber > span { color: #E68900; background: #FFF4DA; }
.cras-kpi-card.is-purple > span { color: #0052A3; background: #E6F0FA; }
.cras-kpi-card.is-navy > span { color: #003D7A; background: #E6F0FA; }

.cras-management-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.4fr;
  gap: 14px;
  margin-bottom: 14px;
}

.cras-management-grid > .card {
  border: 1px solid #CCE1F5;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 41, 82, 0.06);
}

.cras-horizontal-chart,
.cras-operational-card {
  grid-column: span 2;
}

.cras-ranking-list,
.cras-alert-list,
.cras-bars,
.cras-operational-grid {
  display: grid;
  gap: 9px;
}

.cras-ranking-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: #F9FAFB;
  border: 1px solid #CCE1F5;
  border-radius: 13px;
}

.cras-ranking-list article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #0066CC;
  background: #E6F0FA;
  border-radius: 999px;
  font-weight: 800;
}

.cras-ranking-list strong,
.cras-ranking-list small {
  display: block;
}

.cras-ranking-list strong {
  color: #002952;
  font-size: 13px;
}

.cras-ranking-list small {
  color: #6B7280;
  font-size: 11px;
}

.cras-ranking-list b {
  color: #002952;
  font-size: 12px;
}

.cras-alert-list p,
.cras-empty-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 11px;
  color: #E68900;
  background: #FFF4DA;
  border: 1px solid #FFE0A3;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 650;
}

.cras-alert-list .icon {
  width: 16px;
  height: 16px;
  color: #E68900;
}

.cras-empty-alert {
  color: #008040;
  background: #ECFDF3;
  border-color: #D1FADF;
}

.cras-bars {
  margin-top: 4px;
}

.cras-bar-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.cras-bar-row span {
  color: #374151;
  font-weight: 750;
}

.cras-bar-row div {
  height: 12px;
  overflow: hidden;
  background: #E6F0FA;
  border-radius: 999px;
}

.cras-bar-row i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0066CC, #66A5E1);
  border-radius: inherit;
}

.cras-bar-row b {
  color: #002952;
  font-size: 12px;
  text-align: right;
}

.cras-situation-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.cras-donut {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.cras-donut span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #CCE1F5;
}

.cras-donut strong,
.cras-donut small {
  display: block;
  text-align: center;
}

.cras-donut strong {
  color: #002952;
  font-size: 20px;
  line-height: 1;
}

.cras-donut small {
  color: #6B7280;
  font-size: 10px;
}

.cras-situation-layout ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cras-situation-layout li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #374151;
  font-size: 12px;
}

.cras-situation-layout li i {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.cras-situation-layout li b {
  margin-left: auto;
}

.cras-operational-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cras-operational-grid span {
  display: grid;
  gap: 4px;
  padding: 11px;
  background: #F9FAFB;
  border: 1px solid #CCE1F5;
  border-radius: 13px;
}

.cras-operational-grid small {
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
}

.cras-operational-grid strong {
  color: #002952;
  font-size: 14px;
}

.cras-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cras-performance {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.cras-performance.is-excellent {
  color: #008040;
  background: #ECFDF3;
}

.cras-performance.is-attention {
  color: #E68900;
  background: #FFF4DA;
}

.cras-performance.is-critical {
  color: #E11D48;
  background: #FFF1F2;
}

.cras-card-average {
  display: block;
  margin: 7px 0 10px;
  color: #6B7280;
  font-size: 12px;
}

.cras-card-average b {
  color: #002952;
}

.cras-waiting-card {
  margin-bottom: 14px;
}

.cras-waiting-table {
  min-width: 1080px;
}

.cras-waiting-table th,
.cras-waiting-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

@media (max-width: 1366px) {
  .cras-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cras-management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cras-horizontal-chart,
  .cras-operational-card {
    grid-column: span 1;
  }
}

@media (max-width: 860px) {
  .cras-kpi-grid,
  .cras-management-grid,
  .cras-operational-grid,
  .cras-situation-layout {
    grid-template-columns: 1fr;
  }
}

/* Central de emissão CMIPcD */
.emission-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.emission-metric {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 15px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 41, 82, 0.06);
}

.emission-metric::after {
  content: "";
  position: absolute;
  inset: auto -24px -42px auto;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  opacity: 0.16;
  background: currentColor;
}

.emission-metric-icon {
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #E6F0FA;
}

.emission-metric .icon {
  width: 22px;
  height: 22px;
}

.emission-metric div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.emission-metric small,
.emission-metric em {
  overflow: hidden;
  color: #6B7280;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emission-metric em {
  line-height: 1.25;
  white-space: normal;
}

.emission-metric small {
  color: #374151;
  font-weight: 700;
}

.emission-metric strong {
  color: #002952;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.emission-metric.is-blue {
  color: #0066CC;
}

.emission-metric.is-orange {
  color: #E68900;
}

.emission-metric.is-green {
  color: #008040;
}

.emission-metric.is-purple {
  color: #0052A3;
}

.generate-layout.emission-center-layout {
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  gap: 16px;
}

.emission-list-panel {
  padding: 16px;
  border-color: #CCE1F5;
  box-shadow: 0 16px 36px rgba(0, 41, 82, 0.07);
}

.emission-list-head,
.emission-info-head,
.card-viewer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.emission-list-head {
  justify-content: flex-start;
}

.emission-list-head > span,
.emission-info-head > span {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #0066CC;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 14px;
}

.emission-list-head h2,
.emission-info-head h2,
.beneficiary-panel h2,
.preview-card h2 {
  margin: 0;
  color: #002952;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.emission-list-head p,
.emission-info-head p,
.card-viewer-header p,
.beneficiary-identity p {
  margin: 4px 0 0;
  color: #6B7280;
  font-size: 13px;
}

.emission-search-field {
  margin-top: 14px;
}

.emission-search-shell {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 12px;
  background: #F9FAFB;
  border: 1px solid #CCE1F5;
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.emission-search-shell:focus-within {
  background: #FFFFFF;
  border-color: #99C3EB;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.11);
}

.emission-search-shell .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #0066CC;
}

.emission-search-shell input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  color: #002952;
  background: transparent;
  border: 0;
  outline: 0;
}

.approved-list {
  max-height: calc(100vh - 346px);
}

.approved-list .emission-person-card {
  position: relative;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px 11px;
  padding: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  border: 1px solid #CCE1F5;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(0, 41, 82, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.approved-list .emission-person-card:hover,
.approved-list .emission-person-card.active {
  transform: translateY(-1px);
  background: #E6F0FA;
  border-color: #99C3EB;
  box-shadow: 0 14px 26px rgba(0, 102, 204, 0.13);
}

.approved-list .emission-person-card.active::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  background: #0066CC;
  border-radius: 999px;
}

.emission-person-avatar,
.beneficiary-avatar-lg {
  display: grid;
  place-items: center;
  color: #0066CC;
  font-weight: 800;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
}

.emission-person-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 12px;
}

.emission-person-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.approved-list .emission-person-main strong {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.approved-list .emission-person-main small {
  color: #6B7280;
  font-size: 12px;
  font-weight: 500;
}

.emission-person-badge,
.emission-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.emission-person-badge {
  grid-column: 2;
  justify-self: start;
}

.emission-person-badge::before,
.emission-status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.emission-person-badge.is-ready,
.emission-status-badge.is-ready {
  color: #0066CC;
  background: #E6F0FA;
}

.emission-person-badge.is-issued,
.emission-status-badge.is-issued {
  color: #0052A3;
  background: #E6F0FA;
}

.emission-person-badge.is-delivered,
.emission-status-badge.is-delivered {
  color: #008040;
  background: #ECFDF3;
}

.emission-person-badge.is-pending,
.emission-status-badge.is-pending {
  color: #E68900;
  background: #FFF4DA;
}

.approved-list .approved-meta {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid #CCE1F5;
}

.approved-list .approved-meta small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #6B7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.approved-list .approved-meta .icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #0066CC;
}

.emission-list-empty {
  margin: 0;
  padding: 18px;
  color: #6B7280;
  text-align: center;
  background: #F9FAFB;
  border: 1px dashed #99C3EB;
  border-radius: 14px;
}

.emission-workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.beneficiary-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(340px, 1.2fr) minmax(220px, auto);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-color: #CCE1F5;
}

.beneficiary-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.beneficiary-avatar-lg {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 16px;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.42);
}

.beneficiary-identity > div,
.beneficiary-grid,
.emission-quick-actions {
  min-width: 0;
}

.beneficiary-identity h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0066CC;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beneficiary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.beneficiary-datum {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  background: #F9FAFB;
  border: 1px solid #CCE1F5;
  border-radius: 13px;
}

.beneficiary-datum small {
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
}

.beneficiary-datum strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emission-quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.emission-quick-actions .btn {
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.emission-primary-action {
  min-height: 44px !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.emission-process-timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 14px 16px;
  overflow: hidden;
}

.emission-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: #9CA3AF;
  text-align: center;
}

.emission-step::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 50%;
  height: 2px;
  background: #CCE1F5;
}

.emission-step::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 0;
  width: 50%;
  height: 2px;
  background: #CCE1F5;
}

.emission-step:first-child::before,
.emission-step:last-child::after {
  content: none;
}

.emission-step i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #6B7280;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 50%;
}

.emission-step strong {
  min-width: 0;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.emission-step.is-complete,
.emission-step.is-current {
  color: #0066CC;
}

.emission-step.is-complete::before,
.emission-step.is-complete::after,
.emission-step.is-current::before {
  background: #0066CC;
}

.emission-step.is-complete i {
  color: #FFFFFF;
  background: #0066CC;
  border-color: #0066CC;
}

.emission-step.is-current i {
  color: #0066CC;
  background: #E6F0FA;
  border-color: #99C3EB;
  box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.09);
}

.emission-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: 14px;
  align-items: start;
}

.emission-info-card {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-color: #CCE1F5;
}

.emission-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.emission-info-list div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  background: #F9FAFB;
  border: 1px solid #CCE1F5;
  border-radius: 13px;
}

.emission-info-list dt {
  color: #6B7280;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.emission-info-list dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #002952;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-viewer-header {
  align-items: center;
  margin-bottom: 15px;
}

.card-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.card-viewer-toolbar .icon-button {
  width: 38px;
  height: 38px;
  color: #0066CC;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 12px;
}

.card-viewer-toolbar .icon-button:hover {
  background: #E6F0FA;
  transform: translateY(-1px);
}

.btn-compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.preview-card {
  border-color: #CCE1F5;
  box-shadow: 0 18px 42px rgba(0, 41, 82, 0.08);
}

.preview-card .card-duplex-preview {
  padding: 14px;
  background: linear-gradient(180deg, #F9FAFB 0%, #E6F0FA 100%);
  border: 1px solid #CCE1F5;
  border-radius: 18px;
}

.card-face-preview {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-face-preview > span {
  margin: 0;
  color: #0066CC;
  font-size: 11px;
  font-weight: 900;
}

.card-preview-wrapper {
  max-width: 100%;
  padding: 4px;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0, 41, 82, 0.08);
}

.preview-card .card-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.preview-card.is-fullscreen {
  position: fixed;
  inset: 16px;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: auto;
  background: #FFFFFF;
  box-shadow: 0 28px 70px rgba(0, 41, 82, 0.28);
}

.preview-card.is-fullscreen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 41, 82, 0.36);
  backdrop-filter: blur(4px);
}

.preview-card.is-fullscreen .card-duplex-preview {
  align-items: start;
}

.emission-empty-state {
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 34px;
  color: #6B7280;
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(0, 102, 204, 0.12), transparent 24%),
    #FFFFFF;
}

.emission-empty-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #0066CC;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 28px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.58);
}

.emission-empty-icon .icon {
  width: 36px;
  height: 36px;
}

.emission-empty-state h2 {
  margin: 12px 0 0;
  color: #002952;
  font-size: 22px;
}

.emission-empty-state p {
  max-width: 430px;
  margin: 6px 0 0;
  font-size: 14px;
}

@media (max-width: 1440px) {
  .emission-summary-grid {
    gap: 10px;
  }

  .emission-metric {
    padding: 12px;
  }

  .emission-metric-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .emission-metric strong {
    font-size: 24px;
  }

  .beneficiary-panel {
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.2fr);
  }

  .emission-quick-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .emission-main-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}

@media (max-width: 1180px) {
  .generate-layout.emission-center-layout,
  .emission-main-grid,
  .beneficiary-panel {
    grid-template-columns: 1fr;
  }

  .emission-list-panel {
    position: static;
  }

  .approved-list {
    max-height: 360px;
  }

  .emission-info-card {
    position: static;
  }
}

@media (max-width: 920px) {
  .emission-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emission-process-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 14px;
  }

  .emission-step::before,
  .emission-step::after {
    content: none;
  }

  .card-duplex-preview,
  .preview-card .card-duplex-preview {
    grid-template-columns: 1fr;
  }

  .card-viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-viewer-toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .emission-summary-grid,
  .beneficiary-grid,
  .emission-quick-actions {
    grid-template-columns: 1fr;
  }

  .approved-list .approved-meta {
    grid-column: 1 / -1;
  }
}

/* Classificação inicial CMIPcD */
.process-classification-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #F9FAFB, #FFFFFF);
  border: 1px solid #CCE1F5;
  border-radius: 16px;
}

.process-classification-block.field-error {
  border-color: #E11D48;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.process-classification-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.process-classification-heading > span {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0066CC;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 13px;
}

.process-classification-heading strong {
  display: block;
  color: #002952;
  font-size: 15px;
  font-weight: 800;
}

.process-classification-heading small {
  color: #6B7280;
  font-size: 12px;
}

.process-classification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.classification-option {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 138px;
  padding: 13px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 15px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.classification-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.classification-option > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--class-color, #0066CC);
  background: var(--class-bg, #E6F0FA);
  border-radius: 12px;
}

.classification-option strong {
  color: #002952;
  font-size: 15px;
  font-weight: 800;
}

.classification-option em {
  color: var(--class-color, #0066CC);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.classification-option small {
  color: #6B7280;
  font-size: 12px;
  line-height: 1.35;
}

.classification-option:hover,
.classification-option:has(input:checked) {
  transform: translateY(-1px);
  background: var(--class-bg, #E6F0FA);
  border-color: var(--class-border, #99C3EB);
  box-shadow: 0 12px 26px rgba(0, 41, 82, 0.09);
}

.classification-option:has(input:checked)::after {
  content: "Selecionado";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: var(--class-color, #0066CC);
  background: #FFFFFF;
  border: 1px solid var(--class-border, #99C3EB);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.classification-option.is-green {
  --class-color: #008040;
  --class-bg: #ECFDF3;
  --class-border: #D1FADF;
}

.classification-option.is-amber {
  --class-color: #E68900;
  --class-bg: #FFF4DA;
  --class-border: #FFE0A3;
}

.classification-option.is-red {
  --class-color: #E11D48;
  --class-bg: #FFF1F2;
  --class-border: #FFF1F2;
}

.classification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.classification-badge .icon {
  width: 13px;
  height: 13px;
}

.classification-badge.is-green {
  color: #008040;
  background: #ECFDF3;
  border-color: #D1FADF;
}

.classification-badge.is-amber {
  color: #E68900;
  background: #FFF4DA;
  border-color: #FFE0A3;
}

.classification-badge.is-red {
  color: #E11D48;
  background: #FFF1F2;
  border-color: #FFF1F2;
}

.classification-badge.is-neutral {
  color: #374151;
  background: #F3F4F6;
  border-color: #E5E7EB;
}

.dashboard-records-table .col-classification {
  width: 10%;
}

.dashboard-records-table td:has(.classification-badge) {
  text-align: center;
}

.records-table-lista .dashboard-records-table {
  min-width: 1180px;
}

.records-table-lista .dashboard-records-table .col-beneficiary { width: 19%; }
.records-table-lista .dashboard-records-table .col-protocol { width: 12%; }
.records-table-lista .dashboard-records-table .col-type { width: 8%; }
.records-table-lista .dashboard-records-table .col-classification { width: 12%; }
.records-table-lista .dashboard-records-table .col-cras { width: 13%; }
.records-table-lista .dashboard-records-table .col-status { width: 13%; }
.records-table-lista .dashboard-records-table .col-entry { width: 8%; }
.records-table-lista .dashboard-records-table .col-date { width: 10%; }
.records-table-lista .dashboard-records-table .col-actions { width: 5%; }

.records-table-dashboard .dashboard-records-table .col-beneficiary { width: 23%; }
.records-table-dashboard .dashboard-records-table .col-protocol { width: 13%; }
.records-table-dashboard .dashboard-records-table .col-type { width: 8%; }
.records-table-dashboard .dashboard-records-table .col-classification { width: 11%; }
.records-table-dashboard .dashboard-records-table .col-cras { width: 14%; }
.records-table-dashboard .dashboard-records-table .col-status { width: 14%; }
.records-table-dashboard .dashboard-records-table .col-date { width: 10%; }
.records-table-dashboard .dashboard-records-table .col-actions { width: 7%; }

.cadastro-detail-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.stat-red {
  --stat-main: #E11D48;
  --stat-bg: #FFF1F2;
  --stat-border: #FFF1F2;
  --stat-soft: rgba(244, 63, 94, 0.11);
}

/* Manual operacional CMIPcD */
.help-manual-hero,
.help-section-card,
.help-flow-card-full,
.help-deadline-card,
.help-alert-card {
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 41, 82, 0.06);
}

.help-manual-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 95% 20%, rgba(0, 102, 204, 0.14), transparent 30%),
    linear-gradient(135deg, #FFFFFF, #E6F0FA);
}

.help-manual-hero h2,
.help-section-card h2,
.help-flow-card-full h2 {
  margin: 4px 0 6px;
  color: #002952;
  font-size: 24px;
  line-height: 1.16;
}

.help-manual-hero p,
.help-section-card p {
  margin: 0;
  color: #6B7280;
  line-height: 1.5;
}

.help-manual-hero aside {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #CCE1F5;
  border-radius: 16px;
}

.help-manual-hero aside small,
.help-kicker,
.help-section-card > span {
  color: #0066CC;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-manual-hero aside strong {
  color: #002952;
  font-size: 20px;
}

.help-manual-hero aside span {
  color: #6B7280;
  font-size: 13px;
}

.help-tabs {
  display: grid;
  gap: 12px;
}

.help-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.help-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: #E6F0FA;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
}

.help-tab-nav label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #0052A3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

#help-tab-overview:checked ~ .help-tab-nav label[for="help-tab-overview"],
#help-tab-semus:checked ~ .help-tab-nav label[for="help-tab-semus"],
#help-tab-semasc:checked ~ .help-tab-nav label[for="help-tab-semasc"],
#help-tab-cras:checked ~ .help-tab-nav label[for="help-tab-cras"],
#help-tab-comunicacao:checked ~ .help-tab-nav label[for="help-tab-comunicacao"],
#help-tab-docs:checked ~ .help-tab-nav label[for="help-tab-docs"],
#help-tab-faq:checked ~ .help-tab-nav label[for="help-tab-faq"] {
  color: #0066CC;
  background: #FFFFFF;
  border-color: #CCE1F5;
  box-shadow: 0 8px 18px rgba(0, 102, 204, 0.1);
}

.help-tab-panels {
  min-width: 0;
}

.help-panel {
  display: none;
  gap: 14px;
}

#help-tab-overview:checked ~ .help-tab-panels .panel-overview,
#help-tab-semus:checked ~ .help-tab-panels .panel-semus,
#help-tab-semasc:checked ~ .help-tab-panels .panel-semasc,
#help-tab-cras:checked ~ .help-tab-panels .panel-cras,
#help-tab-comunicacao:checked ~ .help-tab-panels .panel-comunicacao,
#help-tab-docs:checked ~ .help-tab-panels .panel-docs,
#help-tab-faq:checked ~ .help-tab-panels .panel-faq {
  display: grid;
}

.help-section-card,
.help-flow-card-full,
.help-alert-card {
  padding: 18px;
}

.help-official-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.help-official-flow article,
.help-step-card,
.help-classification-grid article,
.help-error-grid article {
  min-width: 0;
  padding: 14px;
  background: #F9FAFB;
  border: 1px solid #CCE1F5;
  border-radius: 15px;
}

.help-official-flow article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #0066CC;
  background: #E6F0FA;
  border-radius: 13px;
}

.help-official-flow small,
.help-step-card small {
  display: block;
  margin-top: 8px;
  color: #0066CC;
  font-size: 11px;
  font-weight: 800;
}

.help-official-flow strong,
.help-step-card h3,
.help-classification-grid strong,
.help-error-grid strong {
  display: block;
  margin: 4px 0;
  color: #002952;
  font-size: 15px;
  line-height: 1.25;
}

.help-official-flow p,
.help-step-card p,
.help-error-grid p {
  margin: 0;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.45;
}

.help-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.help-step-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.help-step-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #FFFFFF;
  background: #0066CC;
  border-radius: 14px;
  font-weight: 900;
}

.help-step-card strong {
  display: block;
  margin-top: 8px;
  color: #008040;
  font-size: 12px;
}

.help-classification-grid,
.help-checklist-grid,
.help-error-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.help-classification-grid article {
  background: #FFFFFF;
}

.help-classification-grid article span {
  color: var(--class-color, #0066CC);
  font-size: 13px;
  font-weight: 800;
}

.help-classification-grid article small {
  display: block;
  margin-top: 10px;
  color: #374151;
  font-size: 12px;
  line-height: 1.4;
}

.help-classification-grid .is-green {
  --class-color: #008040;
  border-color: #D1FADF;
  background: #ECFDF3;
}

.help-classification-grid .is-amber {
  --class-color: #E68900;
  border-color: #FFE0A3;
  background: #FFF4DA;
}

.help-classification-grid .is-red {
  --class-color: #E11D48;
  border-color: #FFF1F2;
  background: #FFF1F2;
}

.help-checklist-grid span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 46px;
  padding: 12px;
  color: #374151;
  background: #F9FAFB;
  border: 1px solid #CCE1F5;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.35;
}

.help-checklist-grid .icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #008040;
}

.help-deadline-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #0066CC, #3387D7);
  color: #FFFFFF;
}

.help-deadline-card > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
}

.help-deadline-card strong,
.help-deadline-card p {
  margin: 0;
  color: #FFFFFF;
}

.help-alert-card h3 {
  margin: 0 0 10px;
  color: #E68900;
}

.help-alert-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-alert-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #374151;
  font-size: 13px;
}

.help-alert-card .icon {
  width: 16px;
  height: 16px;
  color: #E68900;
}

.help-faq-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.help-faq-list details {
  background: #F9FAFB;
  border: 1px solid #CCE1F5;
  border-radius: 13px;
  overflow: hidden;
}

.help-faq-list summary {
  padding: 13px 14px;
  color: #002952;
  font-weight: 800;
  cursor: pointer;
}

.help-faq-list p {
  margin: 0;
  padding: 0 14px 14px;
  color: #6B7280;
}

@media (max-width: 1200px) {
  .process-classification-grid,
  .help-official-flow,
  .help-classification-grid,
  .help-checklist-grid,
  .help-error-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-manual-hero,
  .help-step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .process-classification-grid,
  .help-official-flow,
  .help-classification-grid,
  .help-checklist-grid,
  .help-error-grid {
    grid-template-columns: 1fr;
  }
}

/* Revisao visual geral - densidade e responsividade institucional */
.app-main {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 102, 204, 0.06), transparent 26%),
    linear-gradient(180deg, #E6F0FA 0%, #E6F0FA 100%);
}

.view {
  max-width: 100%;
}

.page-title {
  margin-bottom: 14px;
}

.page-title h1 {
  letter-spacing: 0;
}

.sidebar {
  box-shadow: 16px 0 40px rgba(0, 41, 82, 0.12);
}

.sidebar-brand {
  min-height: 68px;
}

.sidebar-brand img {
  width: 42px;
  height: 42px;
}

.sidebar-brand strong {
  font-size: 21px;
}

.sidebar-brand span {
  max-width: 150px;
  line-height: 1.15;
}

.sidebar-scroll {
  padding-top: 10px;
  padding-bottom: 14px;
}

.nav-title {
  margin: 16px 20px 7px;
  font-size: 10.5px;
}

.sidebar-link,
.nav-parent {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.sidebar-submenu,
.nav-sub {
  margin-top: 4px;
}

.nav-sub .sidebar-link,
.nav-sub .nav-link {
  min-height: 34px;
  gap: 7px;
  padding-left: 34px;
  padding-right: 8px;
  font-size: 12px;
}

.topbar {
  min-height: 58px;
}

.user-menu-button {
  min-height: 42px;
}

.dashboard-hero {
  min-height: 156px;
  padding: 20px 22px;
  gap: 16px;
  border-radius: 20px;
}

.dashboard-hero h1 {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.05;
}

.dashboard-hero p {
  font-size: 13.5px;
}

.dashboard-hero-metric {
  padding: 12px 13px;
}

.dashboard-hero-metric strong {
  margin-top: 4px;
  font-size: 27px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.stat-card {
  min-height: 84px;
  padding: 12px;
  align-items: center;
  gap: 10px;
}

.stat-card .stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.stat-card span {
  font-size: 11.2px;
  line-height: 1.1;
}

.stat-card strong {
  font-size: 26px;
  line-height: 1;
}

.stat-card small {
  margin-top: 3px;
  font-size: 10.4px;
  line-height: 1.15;
}

.dashboard-grid {
  gap: 12px;
}

.dashboard-chart-card,
.process-flow-card,
.dashboard-records-card,
.table-card {
  border-color: #CCE1F5;
  box-shadow: 0 14px 32px rgba(0, 41, 82, 0.055);
}

.process-flow {
  gap: 8px;
}

.process-flow-step {
  min-height: 74px;
}

.dashboard-table-scroll {
  border-radius: 0 0 16px 16px;
}

.dashboard-records-table {
  width: 100%;
  table-layout: fixed;
}

.dashboard-records-table th,
.dashboard-records-table td {
  min-width: 0;
  vertical-align: middle;
}

.dashboard-records-table .status,
.classification-badge,
.protocol-chip,
.type-chip {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.classification-badge {
  padding-inline: 8px;
  gap: 4px;
}

.classification-badge-main,
.classification-badge-detail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.classification-badge-detail::before {
  content: " - ";
}

.action-dropdown-btn {
  max-width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.records-table-card .dashboard-records-header {
  gap: 14px;
  padding: 16px 18px;
}

.records-table-card .dashboard-records-header h2 {
  font-size: 20px;
}

.records-table-card .dashboard-records-header p {
  font-size: 13px;
}

.records-list-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 12px;
}

.records-list-summary-item {
  min-height: 34px;
  padding: 8px 10px;
}

.records-list-summary-item small {
  font-size: 10.5px;
}

.records-list-summary-item strong {
  font-size: 17px;
}

.records-table-lista .dashboard-records-table,
.records-table-analise .dashboard-records-table,
.records-table-entregas .dashboard-records-table,
.records-table-cras .dashboard-records-table,
.records-table-carteirinhas .dashboard-records-table,
.records-table-dashboard .dashboard-records-table {
  min-width: 0;
}

.records-table-lista .dashboard-records-table .col-beneficiary { width: 20%; }
.records-table-lista .dashboard-records-table .col-protocol { width: 12%; }
.records-table-lista .dashboard-records-table .col-type { width: 7%; }
.records-table-lista .dashboard-records-table .col-classification { width: 13%; }
.records-table-lista .dashboard-records-table .col-cras { width: 14%; }
.records-table-lista .dashboard-records-table .col-status { width: 15%; }
.records-table-lista .dashboard-records-table .col-entry { width: 7%; }
.records-table-lista .dashboard-records-table .col-date { width: 8%; }
.records-table-lista .dashboard-records-table .col-actions { width: 4%; }

.records-table-analise .col-beneficiary { width: 19%; }
.records-table-analise .col-protocol { width: 12%; }
.records-table-analise .col-type { width: 7%; }
.records-table-analise .col-classification { width: 11%; }
.records-table-analise .col-cras { width: 14%; }
.records-table-analise .col-status { width: 14%; }
.records-table-analise .col-stay { width: 11%; }
.records-table-analise .col-date { width: 8%; }
.records-table-analise .col-actions { width: 4%; }

.records-table-entregas .dashboard-records-table .col-beneficiary,
.records-table-cras .dashboard-records-table .col-beneficiary,
.records-table-carteirinhas .dashboard-records-table .col-beneficiary { width: 21%; }
.records-table-entregas .dashboard-records-table .col-protocol,
.records-table-cras .dashboard-records-table .col-protocol,
.records-table-carteirinhas .dashboard-records-table .col-protocol { width: 12%; }
.records-table-entregas .dashboard-records-table .col-type,
.records-table-cras .dashboard-records-table .col-type,
.records-table-carteirinhas .dashboard-records-table .col-type { width: 7%; }
.records-table-entregas .dashboard-records-table .col-classification,
.records-table-cras .dashboard-records-table .col-classification,
.records-table-carteirinhas .dashboard-records-table .col-classification { width: 13%; }
.records-table-entregas .dashboard-records-table .col-cras,
.records-table-cras .dashboard-records-table .col-cras,
.records-table-carteirinhas .dashboard-records-table .col-cras { width: 15%; }
.records-table-entregas .dashboard-records-table .col-status,
.records-table-cras .dashboard-records-table .col-status,
.records-table-carteirinhas .dashboard-records-table .col-status { width: 16%; }
.records-table-entregas .dashboard-records-table .col-date,
.records-table-cras .dashboard-records-table .col-date,
.records-table-carteirinhas .dashboard-records-table .col-date { width: 10%; }
.records-table-entregas .dashboard-records-table .col-actions,
.records-table-cras .dashboard-records-table .col-actions,
.records-table-carteirinhas .dashboard-records-table .col-actions { width: 6%; }

.records-table-dashboard .dashboard-records-table .col-beneficiary { width: 22%; }
.records-table-dashboard .dashboard-records-table .col-protocol { width: 12%; }
.records-table-dashboard .dashboard-records-table .col-type { width: 7%; }
.records-table-dashboard .dashboard-records-table .col-classification { width: 12%; }
.records-table-dashboard .dashboard-records-table .col-cras { width: 14%; }
.records-table-dashboard .dashboard-records-table .col-status { width: 15%; }
.records-table-dashboard .dashboard-records-table .col-date { width: 10%; }
.records-table-dashboard .dashboard-records-table .col-actions { width: 8%; }

.records-table-lista .dashboard-records-table thead th,
.records-table-analise .dashboard-records-table thead th,
.records-table-entregas .dashboard-records-table thead th,
.records-table-cras .dashboard-records-table thead th,
.records-table-carteirinhas .dashboard-records-table thead th,
.records-table-dashboard .dashboard-records-table thead th {
  padding: 9px 8px;
  font-size: 10px;
}

.records-table-lista .dashboard-records-table tbody td,
.records-table-analise .dashboard-records-table tbody td,
.records-table-entregas .dashboard-records-table tbody td,
.records-table-cras .dashboard-records-table tbody td,
.records-table-carteirinhas .dashboard-records-table tbody td,
.records-table-dashboard .dashboard-records-table tbody td {
  height: 58px;
  padding: 8px;
}

.records-table-lista .beneficiary-cell,
.records-table-analise .beneficiary-cell,
.records-table-entregas .beneficiary-cell,
.records-table-cras .beneficiary-cell,
.records-table-carteirinhas .beneficiary-cell {
  gap: 8px;
}

.beneficiary-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 12px;
}

.beneficiary-cell strong {
  max-width: 100%;
  font-size: 12.5px;
}

.beneficiary-cell small,
.cras-cell small {
  font-size: 11px;
}

.protocol-chip,
.type-chip,
.classification-badge,
.dashboard-records-table .status {
  min-height: 25px;
  font-size: 10px;
}

.classification-badge .icon {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.cras-cell strong {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cras-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-cell strong {
  font-size: 11.5px;
  white-space: nowrap;
}

.date-cell small {
  display: block;
  overflow: hidden;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-stay-badge {
  min-width: 0;
  width: 100%;
  padding: 6px 8px;
}

.action-dropdown-menu {
  z-index: 80;
}

@media (max-width: 1440px) {
  .app-main {
    padding: 18px;
  }

  .view {
    gap: 12px;
  }

  .page-title {
    gap: 12px;
  }

  .page-title h1 {
    font-size: 33px;
  }

  .page-title p {
    font-size: 14px;
  }

  .dashboard-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    min-height: 150px;
    padding: 18px 20px;
  }

  .dashboard-hero h1 {
    font-size: 30px;
  }

  .dashboard-hero-metrics {
    gap: 8px;
  }

  .dashboard-hero-metric {
    padding: 10px 12px;
  }

  .dashboard-hero-metric strong {
    font-size: 25px;
  }

  .stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .stat-card {
    min-height: 78px;
    padding: 11px;
  }

  .stat-card .stat-icon {
    width: 35px;
    height: 35px;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .classification-badge {
    max-width: 92px;
    padding-inline: 6px;
  }

  .classification-badge-detail {
    display: none;
  }

  .records-table-card .dashboard-records-header {
    padding: 14px 16px;
  }

  .records-table-card .dashboard-records-header h2 {
    font-size: 19px;
  }

  .records-table-lista .dashboard-records-table th:nth-child(3),
  .records-table-lista .dashboard-records-table td:nth-child(3),
  .records-table-analise .dashboard-records-table th:nth-child(3),
  .records-table-analise .dashboard-records-table td:nth-child(3),
  .records-table-entregas .dashboard-records-table th:nth-child(3),
  .records-table-entregas .dashboard-records-table td:nth-child(3),
  .records-table-cras .dashboard-records-table th:nth-child(3),
  .records-table-cras .dashboard-records-table td:nth-child(3),
  .records-table-carteirinhas .dashboard-records-table th:nth-child(3),
  .records-table-carteirinhas .dashboard-records-table td:nth-child(3) {
    display: none;
  }

  .records-table-dashboard .dashboard-records-table th:nth-child(3),
  .records-table-dashboard .dashboard-records-table td:nth-child(3) {
    display: none;
  }

  .records-table-card .dashboard-records-table th:nth-child(5) > span {
    font-size: 0;
  }

  .records-table-card .dashboard-records-table th:nth-child(5) > span::after {
    content: "CRAS";
    font-size: 10px;
  }

  .records-table-card .dashboard-records-table th:nth-last-child(2) > span {
    font-size: 0;
  }

  .records-table-card .dashboard-records-table th:nth-last-child(2) > span::after {
    content: "Atualiz.";
    font-size: 10px;
  }

  .records-table-lista .dashboard-records-table .col-beneficiary { width: 21%; }
  .records-table-lista .dashboard-records-table .col-protocol { width: 13%; }
  .records-table-lista .dashboard-records-table .col-classification { width: 9%; }
  .records-table-lista .dashboard-records-table .col-cras { width: 15%; }
  .records-table-lista .dashboard-records-table .col-status { width: 16%; }
  .records-table-lista .dashboard-records-table .col-entry { width: 8%; }
  .records-table-lista .dashboard-records-table .col-date { width: 10%; }
  .records-table-lista .dashboard-records-table .col-actions { width: 8%; }

  .records-table-analise .col-beneficiary { width: 20%; }
  .records-table-analise .col-protocol { width: 12%; }
  .records-table-analise .col-classification { width: 9%; }
  .records-table-analise .col-cras { width: 15%; }
  .records-table-analise .col-status { width: 15%; }
  .records-table-analise .col-stay { width: 13%; }
  .records-table-analise .col-date { width: 8%; }
  .records-table-analise .col-actions { width: 8%; }

  .records-table-entregas .dashboard-records-table .col-beneficiary,
  .records-table-cras .dashboard-records-table .col-beneficiary,
  .records-table-carteirinhas .dashboard-records-table .col-beneficiary { width: 22%; }
  .records-table-entregas .dashboard-records-table .col-protocol,
  .records-table-cras .dashboard-records-table .col-protocol,
  .records-table-carteirinhas .dashboard-records-table .col-protocol { width: 13%; }
  .records-table-entregas .dashboard-records-table .col-classification,
  .records-table-cras .dashboard-records-table .col-classification,
  .records-table-carteirinhas .dashboard-records-table .col-classification { width: 10%; }
  .records-table-entregas .dashboard-records-table .col-cras,
  .records-table-cras .dashboard-records-table .col-cras,
  .records-table-carteirinhas .dashboard-records-table .col-cras { width: 16%; }
  .records-table-entregas .dashboard-records-table .col-status,
  .records-table-cras .dashboard-records-table .col-status,
  .records-table-carteirinhas .dashboard-records-table .col-status { width: 17%; }
  .records-table-entregas .dashboard-records-table .col-date,
  .records-table-cras .dashboard-records-table .col-date,
  .records-table-carteirinhas .dashboard-records-table .col-date { width: 12%; }
  .records-table-entregas .dashboard-records-table .col-actions,
  .records-table-cras .dashboard-records-table .col-actions,
  .records-table-carteirinhas .dashboard-records-table .col-actions { width: 10%; }

  .records-table-lista .action-dropdown-btn,
  .records-table-analise .action-dropdown-btn,
  .records-table-entregas .action-dropdown-btn,
  .records-table-cras .action-dropdown-btn,
  .records-table-carteirinhas .action-dropdown-btn {
    min-width: 72px;
    height: 30px;
    padding-inline: 8px;
  }

  .records-table-dashboard .dashboard-records-table .col-beneficiary { width: 23%; }
  .records-table-dashboard .dashboard-records-table .col-protocol { width: 13%; }
  .records-table-dashboard .dashboard-records-table .col-classification { width: 9%; }
  .records-table-dashboard .dashboard-records-table .col-cras { width: 15%; }
  .records-table-dashboard .dashboard-records-table .col-status { width: 17%; }
  .records-table-dashboard .dashboard-records-table .col-date { width: 12%; }
  .records-table-dashboard .dashboard-records-table .col-actions { width: 11%; }

  .records-table-card .dashboard-records-table .status {
    padding-inline: 6px;
    font-size: 9.8px;
  }
}

@media (max-width: 1280px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .records-list-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Correção do topo sticky: o padding deve ficar no conteúdo, não no container rolável. */
.app-main {
  padding: 0;
}

@media (max-width: 1440px) {
  .app-main {
    padding: 0;
  }

  .view {
    padding: 18px 18px 28px;
  }
}

/* Ajustes finais: visualizador de carteirinha e sidebar compacto */
.card-fullscreen-close {
  display: none;
}

.preview-card.is-fullscreen .card-viewer-toolbar {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 6px;
  border: 1px solid rgba(0, 102, 204, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(0, 41, 82, 0.14);
  backdrop-filter: blur(10px);
}

.preview-card.is-fullscreen .card-fullscreen-close {
  display: grid;
  color: #E11D48;
  border-color: #FFF1F2;
  background: #FFF1F2;
}

.preview-card.is-fullscreen .card-fullscreen-close:hover {
  color: #FFFFFF;
  border-color: #E11D48;
  background: #E11D48;
}

.sidebar:not(.collapsed) .nav-sub {
  padding-left: 18px;
  padding-right: 6px;
}

.sidebar:not(.collapsed) .nav-sub .sidebar-link,
.sidebar:not(.collapsed) .nav-sub .nav-link {
  min-height: 34px;
  gap: 7px;
  padding: 8px 8px 8px 10px;
  font-size: 12px;
  line-height: 1.15;
}

.sidebar:not(.collapsed) .nav-sub .sidebar-link span,
.sidebar:not(.collapsed) .nav-sub .nav-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar.collapsed,
.sidebar.collapsed .sidebar-scroll,
.sidebar.collapsed .nav,
.sidebar.collapsed .sidebar-group,
.sidebar.collapsed .sidebar-link,
.sidebar.collapsed .nav-parent {
  overflow: visible;
}

.sidebar.collapsed .sidebar-link::after,
.sidebar.collapsed .nav-parent::after {
  display: none;
}

.sidebar.collapsed .sidebar-link:hover::after,
.sidebar.collapsed .sidebar-link:focus-visible::after,
.sidebar.collapsed .nav-parent:hover::after,
.sidebar.collapsed .nav-parent:focus-visible::after {
  content: attr(data-tooltip);
  display: block;
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  bottom: auto;
  z-index: 9999;
  width: max-content;
  max-width: 280px;
  padding: 8px 11px;
  color: #FFFFFF;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 41, 82, 0.26);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Página interna de apresentação */
.presentation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(0, 102, 204, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 152, 0, 0.18), transparent 28%),
    linear-gradient(135deg, #0052A3 0%, #0066CC 48%, #3387D7 100%);
  color: #FFFFFF;
  box-shadow: 0 22px 46px rgba(0, 102, 204, 0.2);
}

.presentation-hero h2 {
  margin: 8px 0 8px;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0;
}

.presentation-hero p,
.presentation-hero span {
  color: rgba(255, 255, 255, 0.84);
}

.presentation-hero aside {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 140px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.presentation-hero aside strong {
  font-size: 34px;
  line-height: 1;
}

.presentation-kicker,
.presentation-section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #0066CC;
  background: rgba(0, 102, 204, 0.1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.presentation-card,
.presentation-alert {
  padding: 22px;
  border: 1px solid #CCE1F5;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(0, 41, 82, 0.08);
}

.presentation-card h2,
.presentation-alert h2 {
  margin: 10px 0 14px;
  color: #002952;
  font-size: 24px;
  line-height: 1.15;
}

.presentation-speech {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid #FF9800;
  border-radius: 14px;
  color: #003D7A;
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.12), rgba(0, 102, 204, 0.04));
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
}

.presentation-compare-grid,
.presentation-alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.presentation-compare-grid article {
  padding: 18px;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  background: #F9FAFB;
}

.presentation-compare-grid article.is-after {
  border-color: rgba(0, 128, 64, 0.22);
  background: linear-gradient(180deg, rgba(236, 253, 243, 0.9), #FFFFFF);
}

.presentation-compare-grid h3 {
  margin: 0 0 12px;
  color: #002952;
  font-size: 18px;
}

.presentation-compare-grid ul,
.presentation-alert ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.presentation-compare-grid li,
.presentation-alert li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.presentation-compare-grid li .icon {
  width: 17px;
  height: 17px;
  color: #E11D48;
}

.presentation-compare-grid .is-after li .icon {
  color: #008040;
}

.presentation-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.presentation-timeline article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF, #E6F0FA);
}

.presentation-timeline article > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0066CC, #3387D7);
  box-shadow: 0 10px 24px rgba(0, 102, 204, 0.2);
  font-size: 13px;
  font-weight: 800;
}

.presentation-timeline h3,
.presentation-checklist strong {
  margin: 0 0 5px;
  color: #002952;
  font-size: 15px;
}

.presentation-timeline p,
.presentation-checklist p,
.presentation-faq p {
  margin: 0;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.45;
}

.presentation-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.presentation-checklist article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  background: #F9FAFB;
}

.presentation-checklist article > span {
  width: 20px;
  height: 20px;
  border: 2px solid #99C3EB;
  border-radius: 6px;
  background: #FFFFFF;
}

.presentation-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.presentation-faq details {
  border: 1px solid #CCE1F5;
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
}

.presentation-faq summary {
  cursor: pointer;
  padding: 13px 15px;
  color: #002952;
  font-size: 14px;
  font-weight: 800;
}

.presentation-faq p {
  padding: 0 15px 15px;
}

.presentation-alert {
  box-shadow: 0 14px 30px rgba(0, 41, 82, 0.07);
}

.presentation-alert.is-avoid {
  border-color: rgba(244, 63, 94, 0.22);
  background: linear-gradient(180deg, #FFF1F2, #FFFFFF);
}

.presentation-alert.is-focus {
  border-color: rgba(0, 128, 64, 0.22);
  background: linear-gradient(180deg, #ECFDF3, #FFFFFF);
}

.presentation-alert.is-avoid li::before,
.presentation-alert.is-focus li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.presentation-alert.is-avoid li {
  color: #E11D48;
}

.presentation-alert.is-focus li {
  color: #008040;
}

@media (max-width: 1280px) {
  .presentation-hero {
    grid-template-columns: 1fr;
  }

  .presentation-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .presentation-compare-grid,
  .presentation-alert-grid,
  .presentation-timeline,
  .presentation-faq {
    grid-template-columns: 1fr;
  }

  .presentation-speech {
    font-size: 17px;
  }
}

/* Revisao responsiva geral: tabelas operacionais, topo e botoes de acao */
.app-main,
.view,
.dashboard-records-card,
.records-table-card,
.table-card,
.dashboard-records-header,
.dashboard-records-meta,
.dashboard-table-scroll {
  min-width: 0;
}

.dashboard-table-scroll,
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.records-table-lista .dashboard-records-table,
.records-table-analise .dashboard-records-table,
.records-table-entregas .dashboard-records-table,
.records-table-cras .dashboard-records-table,
.records-table-carteirinhas .dashboard-records-table {
  min-width: 1068px;
}

.records-table-dashboard .dashboard-records-table {
  min-width: 980px;
}

.records-table-lista .dashboard-records-table .col-beneficiary { width: 20%; }
.records-table-lista .dashboard-records-table .col-protocol { width: 12%; }
.records-table-lista .dashboard-records-table .col-type { width: 6%; }
.records-table-lista .dashboard-records-table .col-classification { width: 10%; }
.records-table-lista .dashboard-records-table .col-cras { width: 14%; }
.records-table-lista .dashboard-records-table .col-status { width: 15%; }
.records-table-lista .dashboard-records-table .col-entry { width: 7%; }
.records-table-lista .dashboard-records-table .col-date { width: 8%; }
.records-table-lista .dashboard-records-table .col-actions { width: 8%; }

.records-table-analise .dashboard-records-table .col-beneficiary { width: 20%; }
.records-table-analise .dashboard-records-table .col-protocol { width: 12%; }
.records-table-analise .dashboard-records-table .col-type { width: 6%; }
.records-table-analise .dashboard-records-table .col-classification { width: 9%; }
.records-table-analise .dashboard-records-table .col-cras { width: 14%; }
.records-table-analise .dashboard-records-table .col-status { width: 14%; }
.records-table-analise .dashboard-records-table .col-stay { width: 10%; }
.records-table-analise .dashboard-records-table .col-date { width: 7%; }
.records-table-analise .dashboard-records-table .col-actions { width: 8%; }

.records-table-entregas .dashboard-records-table .col-beneficiary,
.records-table-cras .dashboard-records-table .col-beneficiary,
.records-table-carteirinhas .dashboard-records-table .col-beneficiary { width: 22%; }
.records-table-entregas .dashboard-records-table .col-protocol,
.records-table-cras .dashboard-records-table .col-protocol,
.records-table-carteirinhas .dashboard-records-table .col-protocol { width: 13%; }
.records-table-entregas .dashboard-records-table .col-type,
.records-table-cras .dashboard-records-table .col-type,
.records-table-carteirinhas .dashboard-records-table .col-type { width: 6%; }
.records-table-entregas .dashboard-records-table .col-classification,
.records-table-cras .dashboard-records-table .col-classification,
.records-table-carteirinhas .dashboard-records-table .col-classification { width: 10%; }
.records-table-entregas .dashboard-records-table .col-cras,
.records-table-cras .dashboard-records-table .col-cras,
.records-table-carteirinhas .dashboard-records-table .col-cras { width: 16%; }
.records-table-entregas .dashboard-records-table .col-status,
.records-table-cras .dashboard-records-table .col-status,
.records-table-carteirinhas .dashboard-records-table .col-status { width: 16%; }
.records-table-entregas .dashboard-records-table .col-date,
.records-table-cras .dashboard-records-table .col-date,
.records-table-carteirinhas .dashboard-records-table .col-date { width: 9%; }
.records-table-entregas .dashboard-records-table .col-actions,
.records-table-cras .dashboard-records-table .col-actions,
.records-table-carteirinhas .dashboard-records-table .col-actions { width: 8%; }

.records-table-dashboard .dashboard-records-table .col-beneficiary { width: 23%; }
.records-table-dashboard .dashboard-records-table .col-protocol { width: 13%; }
.records-table-dashboard .dashboard-records-table .col-type { width: 6%; }
.records-table-dashboard .dashboard-records-table .col-classification { width: 9%; }
.records-table-dashboard .dashboard-records-table .col-cras { width: 15%; }
.records-table-dashboard .dashboard-records-table .col-status { width: 17%; }
.records-table-dashboard .dashboard-records-table .col-date { width: 9%; }
.records-table-dashboard .dashboard-records-table .col-actions { width: 8%; }

.users-records-table,
.cras-access-table {
  min-width: 860px;
}

.users-records-table .col-user,
.cras-access-table .col-user { width: 34%; }
.users-records-table .col-profile,
.cras-access-table .col-profile { width: 22%; }
.users-records-table .col-status,
.cras-access-table .col-status { width: 14%; }
.users-records-table .col-date,
.cras-access-table .col-date { width: 18%; }
.users-records-table .col-actions,
.cras-access-table .col-actions { width: 12%; }

.action-dropdown-btn {
  min-width: 76px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.records-table-lista .action-dropdown-btn,
.records-table-analise .action-dropdown-btn,
.records-table-entregas .action-dropdown-btn,
.records-table-cras .action-dropdown-btn,
.records-table-carteirinhas .action-dropdown-btn,
.users-records-table .action-dropdown-btn,
.cras-access-table .action-dropdown-btn {
  min-width: 76px;
}

.classification-badge {
  width: min(100%, 104px);
  justify-content: center;
}

.classification-badge-main,
.classification-badge-detail {
  max-width: 100%;
}

@media (max-width: 980px) {
  .profile-copy,
  .profile-chevron {
    display: none !important;
  }

  .profile-button {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px;
    flex: 0 0 40px !important;
    padding: 2px !important;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 58px;
    min-height: 58px;
    flex-wrap: nowrap;
    gap: 8px;
    padding-inline: 10px;
    overflow: hidden;
  }

  .breadcrumb {
    flex: 1 1 auto;
    min-width: 0;
  }

  .breadcrumb a:not(:last-child),
  .breadcrumb svg {
    display: none;
  }

  .topbar-spacer {
    display: none;
  }

  .menu-toggle,
  .notification-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .dashboard-records-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-records-meta {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-records-meta > span,
  .dashboard-records-meta .btn {
    flex: 1 1 150px;
  }
}

@media (max-width: 560px) {
  .records-list-summary {
    grid-template-columns: 1fr;
  }

  .view {
    padding-inline: 12px;
  }
}
/* Central de notificacoes */
.notification-button.has-new-notification {
  animation: notificationPulse 0.9s ease;
}

.notification-button b.is-hidden {
  display: none;
}

@keyframes notificationPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-1px) scale(1.08); }
  70% { transform: translateY(0) scale(0.98); }
}

.notification-drawer {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 80;
  width: min(420px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: #FFFFFF;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 41, 82, 0.22);
  overflow: hidden;
  animation: notificationDrawerIn 0.18s ease-out;
}

@keyframes notificationDrawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notification-drawer-header,
.notification-drawer-actions,
.notification-center-toolbar,
.notification-center-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-drawer-header {
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #CCE1F5;
}

.notification-drawer-header strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #003D7A;
}

.notification-drawer-header span,
.notification-center-meta {
  color: #3387D7;
  font-size: 0.86rem;
}

.notification-drawer-actions {
  padding: 12px 16px;
  border-bottom: 1px solid #E6F0FA;
  flex-wrap: wrap;
}

.notification-drawer-list {
  overflow: auto;
  padding: 10px 12px 14px;
}

.notification-group h3 {
  margin: 12px 4px 8px;
  color: #0066CC;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notification-item {
  --notification-color: #0066CC;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #CCE1F5;
  border-left: 4px solid var(--notification-color);
  border-radius: 8px;
  background: #FFFFFF;
}

.notification-item.is-unread {
  background: #E6F0FA;
  border-color: #CCE1F5;
}

.notification-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.notification-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--notification-color);
  background: color-mix(in srgb, var(--notification-color) 12%, #FFFFFF);
}

.notification-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.notification-copy strong,
.notification-copy span,
.notification-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.notification-copy strong {
  color: #002952;
  font-size: 0.92rem;
}

.notification-copy span {
  color: #0052A3;
  font-size: 0.84rem;
  line-height: 1.35;
}

.notification-copy small {
  color: #3387D7;
  font-size: 0.75rem;
}

.notification-unread-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: #3387D7;
}

.notification-item-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.notification-item-actions button,
.notification-drawer-header .icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0066CC;
  cursor: pointer;
}

.notification-item-actions button:hover,
.notification-drawer-header .icon-button:hover {
  background: #E6F0FA;
}

.notification-empty {
  padding: 22px;
  color: #3387D7;
  text-align: center;
  border: 1px dashed #99C3EB;
  border-radius: 8px;
  background: #F9FAFB;
}

.notification-center {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.notification-center-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
}

.notification-center-sidebar button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #0052A3;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.notification-center-sidebar button.active,
.notification-center-sidebar button:hover {
  border-color: #CCE1F5;
  background: #E6F0FA;
  color: #0066CC;
}

.notification-center-content {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.notification-center-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
  background: #FFFFFF;
}

.notification-search {
  min-width: min(360px, 100%);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
  color: #0066CC;
  background: #FFFFFF;
}

.notification-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #002952;
}

.notification-center-toolbar select {
  height: 40px;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
  padding: 0 10px;
  color: #0052A3;
  background: #FFFFFF;
}

.notification-center-meta {
  justify-content: space-between;
}

.notification-center-list {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .notification-center {
    grid-template-columns: 1fr;
  }

  .notification-center-sidebar {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .notification-drawer {
    top: 64px;
    right: 12px;
    width: calc(100vw - 24px);
  }

  .notification-item {
    grid-template-columns: 1fr;
  }

  .notification-item-actions {
    justify-content: flex-end;
  }
}

/* Ajustes solicitados: usuarios agrupados, auditoria e pagina Sobre */
.user-access-table {
  min-width: 1080px;
}

.user-access-table .col-user { width: 36%; }
.user-access-table .col-profile { width: 21%; }
.user-access-table .col-status { width: 11%; }
.user-access-table .col-date { width: 14%; }
.user-access-table .col-actions { width: 18%; }

.user-access-table td.actions,
.user-access-table th.th-actions {
  min-width: 170px;
}

.user-unit-row td {
  background: linear-gradient(180deg, #FFFFFF, #E6F0FA);
  border-top: 1px solid #CCE1F5;
  border-bottom: 1px solid #CCE1F5;
}

.user-unit-cell .beneficiary-avatar {
  color: #0066CC;
  background: #E6F0FA;
}

.user-unit-cell .beneficiary-avatar .icon {
  width: 18px;
  height: 18px;
}

.user-unit-toggle {
  width: min(100%, 172px);
  min-width: 0;
  justify-content: center;
  gap: 6px;
  padding-inline: 12px;
  white-space: nowrap;
}

.user-unit-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-unit-toggle .icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.user-unit-toggle[disabled] {
  cursor: default;
  opacity: .65;
}

.user-unit-row[data-expanded="true"] .user-unit-toggle .icon {
  transform: rotate(180deg);
}

.user-access-child-row td {
  background: #F9FAFB;
  color: #374151;
}

.user-access-child-row:hover td {
  background: #E6F0FA;
}

.user-child-cell {
  padding-left: 26px;
  position: relative;
}

.user-child-cell::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 10px;
  height: calc(100% - 24px);
  border-left: 2px solid #99C3EB;
  border-bottom: 2px solid #99C3EB;
  border-radius: 0 0 0 8px;
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.audit-summary-card {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #CCE1F5;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 14px 34px rgba(0, 41, 82, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.audit-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 41, 82, .1);
}

.audit-summary-card > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  border-radius: 12px;
}

.audit-summary-card .icon {
  width: 24px;
  height: 24px;
}

.audit-summary-card small,
.audit-summary-card strong,
.audit-summary-card em {
  display: block;
}

.audit-summary-card small {
  color: #6B7280;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-summary-card strong {
  margin-top: 5px;
  color: #002952;
  font-size: 17px;
  line-height: 1.15;
}

.audit-summary-card em {
  margin-top: 6px;
  color: #0066CC;
  font-size: 12px;
  font-style: normal;
}

.audit-green { border-bottom: 3px solid #00A859; }
.audit-green > span { color: #00A859; background: #ECFDF3; }
.audit-blue { border-bottom: 3px solid #0066CC; }
.audit-blue > span { color: #0066CC; background: #E6F0FA; }
.audit-purple { border-bottom: 3px solid #3387D7; }
.audit-purple > span { color: #0052A3; background: #E6F0FA; }
.audit-orange { border-bottom: 3px solid #FF9800; }
.audit-orange > span { color: #FF9800; background: #FFF4DA; }

.audit-filter-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(130px, .75fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid #CCE1F5;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(0, 41, 82, .06);
}

.audit-filter-card .field {
  gap: 6px;
}

.audit-filter-card .field span {
  color: #374151;
  font-size: 11px;
  font-weight: 700;
}

.audit-filter-card input,
.audit-filter-card select,
.audit-search {
  min-height: 40px;
  border: 1px solid #CCE1F5;
  border-radius: 8px;
  background: #FFFFFF;
}

.audit-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #6B7280;
}

.audit-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
}

.audit-table-card {
  border-radius: 12px;
}

.audit-records-table td {
  height: 64px;
}

.audit-date-cell,
.audit-action-cell,
.audit-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audit-date-cell > span,
.audit-user-cell > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 8px;
}

.audit-date-cell > span {
  color: #0066CC;
  background: #E6F0FA;
}

.audit-date-cell strong,
.audit-action-cell strong,
.audit-user-cell strong {
  color: #002952;
  font-size: 12.5px;
}

.audit-action-cell {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.audit-action-cell small {
  color: #6B7280;
  font-size: 11px;
}

.audit-user-cell > span {
  color: #FFFFFF;
  background: #0066CC;
  font-size: 11px;
  font-weight: 800;
}

.audit-record-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0052A3;
  font-size: 12px;
  font-weight: 700;
}

.audit-record-link .icon {
  width: 14px;
  height: 14px;
}

.about-modern-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 16px;
  color: #FFFFFF;
  background:
    linear-gradient(135deg, rgba(0, 61, 122, .96), rgba(0, 102, 204, .94) 58%, rgba(51, 135, 215, .92)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 1px, transparent 1px 18px);
  box-shadow: 0 22px 50px rgba(0, 102, 204, .22);
  animation: aboutFadeIn .32s ease both;
}

.about-modern-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #111827 25%, #111827 75%, transparent);
  pointer-events: none;
}

.about-modern-copy,
.about-modern-seal {
  position: relative;
  z-index: 1;
}

.about-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  color: inherit;
  background: rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.about-modern-copy h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .94;
}

.about-modern-copy strong {
  display: block;
  max-width: 760px;
  margin-top: 14px;
  color: #E6F0FA;
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.25;
}

.about-modern-copy p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.7;
}

.about-modern-seal {
  width: 144px;
  height: 144px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.about-modern-seal .icon {
  width: 44px;
  height: 44px;
}

.about-modern-seal span {
  font-size: 12px;
  font-weight: 800;
}

.about-modern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.about-modern-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid #CCE1F5;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(0, 41, 82, .08);
  animation: aboutFadeIn .38s ease both;
  transition: transform .18s ease, box-shadow .18s ease;
}

.about-modern-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(0, 41, 82, .12);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #0066CC;
  background: #E6F0FA;
  border-radius: 12px;
}

.about-card-icon .icon {
  width: 23px;
  height: 23px;
}

.about-modern-card .about-kicker {
  color: #0066CC;
  background: #E6F0FA;
  border-color: #CCE1F5;
}

.about-modern-card h3 {
  margin: 0 0 10px;
  color: #002952;
  font-size: 22px;
}

.about-modern-card p {
  margin: 0 0 12px;
  color: #0066CC;
  font-size: 14px;
  line-height: 1.7;
}

.about-dev-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.about-dev-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #CCE1F5;
}

.about-dev-list dt {
  color: #6B7280;
  font-size: 12px;
  font-weight: 800;
}

.about-dev-list dd {
  margin: 0;
  color: #002952;
  font-size: 13px;
  font-weight: 700;
}

.about-modern-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #CCE1F5;
  border-radius: 12px;
  color: #0066CC;
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(0, 41, 82, .055);
  font-size: 12px;
}

.about-modern-footer strong {
  color: #0066CC;
}

.about-modern-footer span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-left: 14px;
  vertical-align: middle;
  background: #CCE1F5;
}

@keyframes aboutFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .audit-summary-grid,
  .about-modern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .audit-summary-grid,
  .about-modern-grid {
    grid-template-columns: 1fr;
  }

  .audit-filter-card,
  .about-modern-hero {
    grid-template-columns: 1fr;
  }

  .about-modern-seal {
    width: 100%;
    height: auto;
    min-height: 96px;
  }

  .about-dev-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .user-child-cell {
    padding-left: 16px;
  }
}

/* Correção final do gráfico territorial do Dashboard */
.dashboard-cras-chart {
  overflow-x: auto;
  overflow-y: hidden;
}

.dashboard-cras-chart .bar-chart {
  grid-template-columns: repeat(6, minmax(64px, 1fr));
  align-items: end;
  gap: 18px;
  width: max(100%, 520px);
  min-width: 520px;
  min-height: 214px;
  padding: 28px 14px 62px;
  overflow: visible;
}

.dashboard-cras-chart .bar-chart-item {
  justify-self: center;
  width: min(68px, 100%);
  min-width: 46px;
}

.dashboard-cras-chart .bar-chart-item b {
  top: -21px;
  left: 50%;
  width: max-content;
  padding: 1px 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(0, 41, 82, 0.06);
}

.dashboard-cras-chart .bar-chart-item span,
.dashboard-cras-chart .bar-chart-item small {
  left: 50%;
  width: 92px;
  max-width: 92px;
  transform: translateX(-50%);
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-cras-chart .bar-chart-item span {
  bottom: -25px;
  color: #002952;
  font-size: 10.5px;
  font-weight: 800;
}

.dashboard-cras-chart .bar-chart-item small {
  bottom: -42px;
  color: #6B7280;
  font-size: 9.8px;
  font-weight: 600;
}

@media (max-width: 1366px) {
  .dashboard-cras-chart .bar-chart {
    gap: 14px;
    width: max(100%, 480px);
    min-width: 480px;
    padding-inline: 10px;
  }

  .dashboard-cras-chart .bar-chart-item {
    width: min(60px, 100%);
  }

  .dashboard-cras-chart .bar-chart-item span,
  .dashboard-cras-chart .bar-chart-item small {
    width: 78px;
    max-width: 78px;
  }
}

/* Precedência final da timeline operacional */
.cadastro-mini-timeline-track {
  grid-template-columns: repeat(11, minmax(112px, 1fr));
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
}

.cadastro-mini-timeline-track article {
  scroll-snap-align: start;
}

/* Ajuste final da tabela do Dashboard */
.records-table-dashboard .dashboard-records-table .col-classification {
  width: 11%;
}

.records-table-dashboard .dashboard-records-table .col-status {
  width: 15%;
}

.records-table-dashboard .classification-badge {
  width: 82px;
  min-width: 82px;
  max-width: 100%;
}

.records-table-dashboard .classification-badge-main {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
}

.records-table-dashboard .classification-badge-detail {
  display: none;
}

/* Novo cadastro: laudo e CRAS por CEP */
.laudo-medico-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: start;
}

.laudo-medico-row .field {
  min-width: 0;
}

.laudo-date-field.is-hidden {
  display: none !important;
}

.cras-highlight.is-auto-selected {
  border-left-color: #00A859;
  background: linear-gradient(135deg, #ECFDF3, #F9FAFB);
}

.cras-highlight.is-manual-selected {
  border-left-color: #0066CC;
}

.cras-highlight.is-suggestion-blocked {
  border-left-color: #E68900;
  background: linear-gradient(135deg, #FFF4DA, #F9FAFB);
}

.cras-highlight.is-auto-selected .cras-auto-feedback {
  color: #008040;
  font-weight: 700;
}

.cras-highlight.is-manual-selected .cras-auto-feedback {
  color: #0052A3;
  font-weight: 700;
}

.cras-highlight.is-suggestion-blocked .cras-auto-feedback {
  color: #9A5B00;
  font-weight: 700;
}

@media (max-width: 760px) {
  .laudo-medico-row {
    grid-template-columns: 1fr;
  }
}

/* Tooltips do sidebar */
.sidebar:not(.collapsed) .sidebar-link::after,
.sidebar:not(.collapsed) .nav-parent::after {
  content: none !important;
  display: none !important;
}

.sidebar.collapsed .sidebar-link[data-route="dashboard"]:hover::after,
.sidebar.collapsed .sidebar-link[data-route="dashboard"]:focus-visible::after {
  top: 0;
  transform: translateY(0);
}

/* Validação pública da carteirinha via QR Code */
.public-validation-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 32px 18px;
  color: #172033;
  background:
    linear-gradient(180deg, rgba(0, 102, 204, 0.08), rgba(255, 255, 255, 0.86) 42%),
    #F4F8FC;
}

.public-validation-shell {
  width: min(920px, 100%);
  display: grid;
  gap: 16px;
}

.public-validation-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-validation-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(0, 64, 128, 0.14);
}

.public-validation-brand strong,
.public-validation-brand span {
  display: block;
}

.public-validation-brand strong {
  color: #003B7A;
  font-size: 22px;
}

.public-validation-brand span {
  color: #5C6B80;
  font-weight: 700;
}

.public-validation-hero,
.public-validation-card,
.public-validation-privacy {
  border: 1px solid #D4E4F5;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 18px 38px rgba(0, 64, 128, 0.12);
}

.public-validation-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-left-width: 6px;
}

.public-validation-hero.is-valid {
  border-left-color: #00A859;
}

.public-validation-hero.is-warning {
  border-left-color: #E68900;
}

.public-validation-hero.is-invalid {
  border-left-color: #C5221F;
}

.public-validation-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #FFFFFF;
}

.public-validation-hero.is-valid .public-validation-icon {
  background: #00A859;
}

.public-validation-hero.is-warning .public-validation-icon {
  background: #E68900;
}

.public-validation-hero.is-invalid .public-validation-icon {
  background: #C5221F;
}

.public-validation-hero small {
  display: block;
  color: #0066CC;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-validation-hero h1 {
  margin: 4px 0 6px;
  color: #072B55;
  font-size: 30px;
  line-height: 1.12;
}

.public-validation-hero p {
  margin: 0;
  color: #5C6B80;
  font-weight: 650;
}

.public-validation-hero > strong {
  justify-self: end;
  padding: 9px 12px;
  border-radius: 999px;
  color: #FFFFFF;
  background: #0066CC;
  white-space: nowrap;
}

.public-validation-hero.is-valid > strong {
  background: #008A49;
}

.public-validation-hero.is-warning > strong {
  background: #B86700;
}

.public-validation-hero.is-invalid > strong {
  background: #A61B18;
}

.public-validation-card {
  padding: 20px;
}

.public-validation-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.public-validation-card-head span,
.public-validation-grid article span {
  display: block;
  color: #6B778A;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-validation-card-head strong {
  color: #072B55;
  font-size: 22px;
}

.public-validation-badge {
  padding: 8px 11px;
  border-radius: 999px;
  color: #FFFFFF;
  font-weight: 900;
}

.public-validation-badge.is-valid {
  background: #008A49;
}

.public-validation-badge.is-warning {
  background: #B86700;
}

.public-validation-badge.is-invalid {
  background: #A61B18;
}

.public-validation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.public-validation-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid #E2ECF6;
  border-radius: 8px;
  background: #F8FBFE;
}

.public-validation-grid article strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: #15233A;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.public-validation-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  color: #5C6B80;
  text-align: center;
  border: 1px dashed #B8D2ED;
  border-radius: 8px;
  background: #F8FBFE;
}

.public-validation-empty .icon {
  color: #0066CC;
}

.public-validation-empty strong {
  color: #072B55;
}

.public-validation-empty p {
  max-width: 560px;
  margin: 0;
}

.public-validation-privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  color: #44556B;
}

.public-validation-privacy .icon {
  flex: 0 0 auto;
  color: #0066CC;
}

.public-validation-privacy strong {
  display: block;
  color: #072B55;
}

.public-validation-privacy p {
  margin: 4px 0 0;
}

.public-validation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .public-validation-page {
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    padding: 18px 12px 28px;
  }

  .public-validation-shell {
    width: 100%;
  }

  .public-validation-hero {
    grid-template-columns: 1fr;
  }

  .public-validation-hero > strong {
    justify-self: start;
    white-space: normal;
  }

  .public-validation-grid {
    grid-template-columns: 1fr;
  }

  .public-validation-actions {
    justify-content: stretch;
  }

  .public-validation-actions .btn {
    flex: 1 1 220px;
  }
}
