:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-alt: #f7f8fa;
  --border: #d9dee7;
  --text: #1f2937;
  --muted: #667085;
  --dark: #1d232f;
  --dark-2: #111827;
  --primary: #0f5eb8;
  --primary-soft: #eaf3ff;
  --success-bg: #eaf7ef;
  --success-text: #1f7a3d;
  --pending-bg: #fff6e5;
  --pending-text: #9a6700;
  --inactive-bg: #eef2f6;
  --inactive-text: #5f6b7a;
  --shadow: 0 8px 24px rgba(16, 24, 40, .06);
  --font-stack: "Segoe UI", Tahoma, Arial, sans-serif;
  --topbar-height: 56px;
  --sidebar-width: 248px;
  --sidebar-collapsed-width: 0px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--text);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { min-height: 100vh; }
.app-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1040;
  height: var(--topbar-height);
  background: linear-gradient(180deg, #242c39 0%, #1b2230 100%);
  color: #f8fafc;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0 .9rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-branding, .topbar-actions { display: flex; align-items: center; gap: .75rem; }
.menu-toggle, .topbar-user {
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.menu-toggle {
  width: 34px;
  height: 34px;
  justify-content: center;
  border-radius: 6px;
}
.menu-toggle:hover, .topbar-link:hover, .topbar-user:hover { background: rgba(255,255,255,.06); }
.menu-toggle svg, .topbar-user svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brandmark { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; }
.brandmark-badge {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  padding: 4px;
}
.brandmark-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brandmark-copy strong, .brandmark-copy small { display: block; line-height: 1.1; }
.brandmark-copy strong { font-size: 14px; font-weight: 600; }
.brandmark-copy small { color: rgba(248,250,252,.72); font-size: 11px; }

.topbar-nav {
  display: flex;
  align-items: stretch;
  gap: .15rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-nav::-webkit-scrollbar { display: none; }
.topbar-link {
  display: inline-flex;
  align-items: center;
  padding: 0 .75rem;
  border-radius: 6px;
  color: rgba(248,250,252,.86);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.topbar-link.active {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.topbar-badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(248,250,252,.88);
  font-size: 11px;
}
.topbar-user {
  padding: .35rem .55rem;
  border-radius: 6px;
  color: rgba(248,250,252,.9);
}
.entity-context-chip {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  padding: .32rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.entity-context-copy {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: rgba(248,250,252,.94);
}
.logout-form { margin: 0; }
.topbar-logout {
  border-color: rgba(255,255,255,.18);
  color: #f8fafc;
}
.topbar-logout:hover,
.topbar-logout:focus {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.24);
}

.shell-body {
  display: flex;
  min-height: 100vh;
  padding-top: var(--topbar-height);
}
.context-sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--surface-alt);
  border-right: 1px solid var(--border);
  padding: .8rem .7rem;
  overflow-y: auto;
}
.context-sidebar-head {
  padding: .35rem .45rem .7rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .7rem;
}
.sidebar-kicker, .page-kicker, .modal-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: .15rem;
}
.context-sidebar-head strong { font-size: 13px; }
.context-nav { display: grid; gap: .2rem; }
.context-link {
  display: grid;
  gap: .12rem;
  padding: .55rem .65rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.context-link span { font-size: 12px; font-weight: 600; }
.context-link small { color: var(--muted); font-size: 11px; }
.context-link:hover {
  background: #fff;
  border-color: var(--border);
}
.context-link.active {
  background: var(--primary-soft);
  border-color: #cfe2ff;
  color: #0b4f99;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: .9rem;
}
.page-header {
  margin-bottom: .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .65rem .8rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.page-header-brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.page-header-brand {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .92;
}
.page-header-brand-entity {
  width: 82px;
  height: 54px;
  padding: .2rem .35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.page-header-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.page-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.page-header p {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: 12px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: .9rem;
}
.workspace-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: .85rem;
}
.partner-section-stack {
  display: grid;
  gap: 1rem;
}
.button-reset {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
}
.workspace-panel-full { width: 100%; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}
.section-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: .75rem;
}
.status-chip {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: .55rem .65rem;
}
.status-chip span { display: block; color: var(--muted); font-size: 11px; }
.status-chip strong { display: block; margin-top: .1rem; font-size: 13px; }

.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: .75rem;
  margin-bottom: .7rem;
  flex-wrap: wrap;
}
.filter-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.filter-field {
  display: grid;
  gap: .2rem;
  min-width: 150px;
}
.filter-field-wide { min-width: 280px; }
.filter-field label {
  font-size: 11px;
  color: var(--muted);
}
.toolbar-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.table-shell { overflow-x: auto; }
.compact-table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
  font-size: 12px;
}
.compact-table thead th {
  white-space: nowrap;
  background: #f5f7fa;
  border-bottom-width: 1px;
  color: #475467;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.compact-table td, .compact-table th {
  padding: .5rem .55rem;
  vertical-align: middle;
}
.compact-table-tight td, .compact-table-tight th { padding: .45rem .4rem; }
.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 1.2rem !important;
}
.table-actions {
  display: inline-flex;
  gap: .35rem;
  justify-content: end;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .45rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.status-badge.is-active { background: var(--success-bg); color: var(--success-text); }
.status-badge.is-inactive { background: var(--inactive-bg); color: var(--inactive-text); }
.status-badge.is-pending { background: var(--pending-bg); color: var(--pending-text); }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: var(--inactive-bg);
  color: var(--inactive-text);
  font-size: 11px;
  font-weight: 700;
}
.status-muted { background: var(--inactive-bg); color: var(--inactive-text); }

.btn {
  border-radius: 6px;
  font-weight: 600;
}
.btn-sm {
  padding: .28rem .55rem;
  font-size: 12px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-outline-secondary {
  color: #4b5565;
  border-color: #cbd5e1;
}

.premium-modal-content {
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, .18);
}
.premium-modal-header {
  border-bottom: 1px solid var(--border);
  padding: .85rem 1rem .7rem;
}
.premium-form { display: grid; gap: .9rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.auxiliary-form-grid .selection-card {
  min-height: 42px;
}
.form-field-wide-span {
  grid-column: 1 / -1;
}
.status-badge.status-muted {
  background: var(--inactive-bg);
  color: var(--inactive-text);
}
.form-field { display: grid; gap: .25rem; }
.form-field label { font-size: 12px; font-weight: 600; }
.field-help { color: var(--muted); font-size: 11px; }
.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
.selection-card {
  display: flex;
  gap: .55rem;
  align-items: start;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: .55rem .65rem;
  border-radius: 8px;
}
.selection-card strong, .selection-card small { display: block; }
.selection-card small { color: var(--muted); }
.checkbox-field {
  align-content: center;
}
.file-pill {
  display: inline-flex;
  align-items: center;
  margin-top: .25rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #0b4f99;
  font-size: 11px;
  font-weight: 600;
}
.inline-feedback {
  border: 1px solid #f3c7c7;
  background: #fff2f2;
  color: #9f1d1d;
  border-radius: 8px;
  padding: .55rem .7rem;
}
.modal-actions {
  display: flex;
  justify-content: end;
  gap: .45rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}
.detail-card {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: .65rem .75rem;
  border-radius: 8px;
}
.detail-card span { display: block; color: var(--muted); font-size: 11px; margin-bottom: .15rem; }
.detail-card strong { font-size: 13px; }
.detail-card-wide { grid-column: 1 / -1; }

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: grid;
  gap: .5rem;
}
.premium-toast {
  min-width: 240px;
  border-radius: 8px;
  color: #fff;
}
.premium-toast-success { background: linear-gradient(180deg, #16763d, #0e5a2d); }
.premium-toast-error { background: linear-gradient(180deg, #b42318, #7a271a); }
.partner-inline-warning {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #e9c46a;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8e1, #fef3c7);
  color: #7c5d12;
  font-size: .92rem;
  box-shadow: 0 10px 24px rgba(124, 93, 18, .08);
}

.placeholder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .8fr);
  gap: .9rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: .85rem;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .75rem;
  margin-bottom: .65rem;
}
.panel-header h1, .panel-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.placeholder-copy { margin: 0 0 .7rem; color: var(--muted); }
.placeholder-grid { display: grid; gap: .45rem; }
.placeholder-card {
  display: flex;
  gap: .5rem;
  align-items: start;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: .55rem .65rem;
}
.placeholder-card p { margin: 0; }
.placeholder-marker {
  width: 8px;
  min-width: 8px;
  height: 8px;
  margin-top: .25rem;
  border-radius: 999px;
  background: var(--primary);
}
.next-steps { margin: 0; padding-left: 1rem; }
.next-steps li + li { margin-top: .35rem; }

.app-shell[data-sidebar-state="collapsed"] .context-sidebar { transform: translateX(-100%); }
.app-shell[data-sidebar-state="collapsed"] .main-content { margin-left: 0; }
.shell-body-no-sidebar .main-content {
  margin-left: 0;
  width: 100%;
}
.dashboard-main-content {
  padding: 1.25rem;
  background:
    radial-gradient(circle at top center, rgba(201, 156, 66, .08), transparent 20%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}
.dashboard-admin {
  display: grid;
  gap: 1rem;
}
.dashboard-admin-header,
.dashboard-admin-card,
.dashboard-admin-panel {
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}
.dashboard-admin-header {
  border-radius: 22px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dashboard-admin-title h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
}
.dashboard-admin-title p {
  margin: .3rem 0 0;
  color: #64748b;
  font-size: 13px;
}
.dashboard-admin-logos {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-height: 104px;
  padding: .5rem .95rem;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,248,251,.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.dashboard-admin-logos-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent 0%, rgba(148,163,184,.42) 18%, rgba(148,163,184,.42) 82%, transparent 100%);
}
.dashboard-admin-logo {
  display: block;
  object-fit: contain;
  height: auto;
}
.dashboard-admin-logo-meuclassico {
  width: min(100%, 250px);
  max-height: 108px;
}
.dashboard-admin-logo-acdb {
  width: min(100%, 210px);
  max-height: 102px;
}
.dashboard-admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .85rem;
}
.dashboard-admin-card {
  border-radius: 18px;
  padding: .9rem .95rem;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
}
.dashboard-admin-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dashboard-admin-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dashboard-admin-card-copy {
  min-width: 0;
}
.dashboard-admin-card-label {
  display: block;
  font-size: 12px;
  color: #475569;
  line-height: 1.3;
}
.dashboard-admin-card-copy strong {
  display: block;
  margin-top: .2rem;
  font-size: 28px;
  line-height: 1;
  color: #0f172a;
}
.dashboard-admin-card-meta {
  margin-top: .45rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 11px;
}
.dashboard-admin-card-meta b {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 .5rem;
  border-radius: 999px;
  font-size: 11px;
}
.dashboard-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .8fr) minmax(260px, .8fr);
  gap: 1rem;
  align-items: start;
}
.dashboard-admin-panel {
  border-radius: 22px;
  padding: 1rem 1.05rem;
}
.dashboard-admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}
.dashboard-admin-panel-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
}
.dashboard-admin-panel-header p {
  margin: .22rem 0 0;
  color: #64748b;
  font-size: 12px;
}
.dashboard-admin-panel-header strong {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.dashboard-admin-table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
  font-size: 12px;
}
.dashboard-admin-table thead th {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
}
.dashboard-admin-table tbody td {
  color: #1e293b;
  vertical-align: middle;
}
.dashboard-admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 .5rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.dashboard-admin-status.is-neutral { background: rgba(148,163,184,.14); color: #475569; }
.dashboard-admin-status.is-vigente { background: rgba(14,165,168,.14); color: #0f766e; }
.dashboard-admin-status.is-disponivel { background: rgba(34,180,93,.14); color: #166534; }
.dashboard-admin-status.is-critical { background: rgba(239,91,104,.14); color: #b42318; }
.dashboard-admin-stack {
  display: grid;
  gap: .85rem;
}
.dashboard-admin-progress-row {
  display: grid;
  gap: .42rem;
}
.dashboard-admin-progress-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: 12px;
}
.dashboard-admin-progress-head strong {
  color: #1e293b;
}
.dashboard-admin-progress-head span {
  color: #64748b;
}
.dashboard-admin-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}
.dashboard-admin-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.dashboard-admin-links {
  display: grid;
  gap: .7rem;
}
.dashboard-admin-link {
  display: grid;
  gap: .35rem;
  padding: .9rem .95rem;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: inherit;
}
.dashboard-admin-link:hover {
  border-color: rgba(53,109,255,.16);
  box-shadow: 0 12px 24px rgba(15,23,42,.06);
}
.dashboard-admin-link-accent {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  display: inline-block;
}
.dashboard-admin-link strong {
  font-size: 16px;
  color: #0f172a;
}
.dashboard-admin-link p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}
.dashboard-white {
  display: grid;
  gap: 1rem;
}
.dashboard-hero,
.dashboard-panel,
.dashboard-metric-card {
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .06);
}
.dashboard-hero {
  min-height: 238px;
  border-radius: 26px;
  padding: 1.6rem 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  background:
    radial-gradient(circle at 15% 25%, rgba(198, 208, 224, .22), transparent 22%),
    radial-gradient(circle at 85% 55%, rgba(198, 208, 224, .18), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
}
.dashboard-hero-brand {
  min-height: 160px;
  display: grid;
  place-items: center;
}
.dashboard-hero-brand img {
  width: 100%;
  max-width: 420px;
  max-height: 130px;
  object-fit: contain;
  display: block;
}
.dashboard-hero-brand-right img {
  max-width: 360px;
}
.dashboard-hero-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent 0%, rgba(148, 163, 184, .45) 18%, rgba(148, 163, 184, .45) 82%, transparent 100%);
}
.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.dashboard-metric-card {
  border-radius: 20px;
  padding: 1.05rem 1.15rem;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: .95rem;
  align-items: center;
}
.dashboard-metric-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
}
.dashboard-metric-copy h2 {
  margin: 0 0 .3rem;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.dashboard-metric-copy strong {
  display: block;
  font-size: 26px;
  line-height: 1.05;
  color: #0f172a;
}
.dashboard-metric-meta {
  margin-top: .45rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}
.dashboard-metric-meta b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 .55rem;
  border-radius: 999px;
  font-size: 12px;
}
.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .95fr);
  gap: 1rem;
}
.dashboard-panel {
  border-radius: 24px;
  padding: 1.15rem 1.2rem;
}
.dashboard-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dashboard-panel-header h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
}
.dashboard-panel-header p {
  margin: .2rem 0 0;
  color: #64748b;
  font-size: 13px;
}
.dashboard-panel-header strong {
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
}
.dashboard-chart-shell {
  display: grid;
  gap: .9rem;
}
.dashboard-chart-svg {
  width: 100%;
  height: 260px;
  overflow: visible;
}
.dashboard-chart-area {
  fill: rgba(53, 109, 255, .10);
  stroke: none;
}
.dashboard-chart-line {
  fill: none;
  stroke: #356dff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dashboard-chart-dot {
  fill: #fff;
  stroke: #356dff;
  stroke-width: 1.6;
}
.dashboard-chart-axis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .4rem;
  color: #64748b;
  font-size: 12px;
}
.dashboard-chart-axis span {
  text-align: center;
}
.dashboard-breakdown-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
.dashboard-donut {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--donut-fill);
  display: grid;
  place-items: center;
  margin-inline: auto;
}
.dashboard-donut-center {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}
.dashboard-donut-center strong {
  font-size: 28px;
  color: #0f172a;
  line-height: 1;
}
.dashboard-donut-center span {
  font-size: 12px;
  color: #64748b;
}
.dashboard-breakdown-list {
  display: grid;
  gap: .75rem;
}
.dashboard-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.dashboard-breakdown-label,
.dashboard-breakdown-value {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.dashboard-breakdown-label strong {
  font-size: 14px;
  color: #1e293b;
}
.dashboard-breakdown-value {
  min-width: 112px;
  justify-content: flex-end;
}
.dashboard-breakdown-value b {
  font-size: 14px;
  color: #0f172a;
}
.dashboard-breakdown-value span {
  color: #64748b;
  font-size: 12px;
}
.dashboard-breakdown-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dashboard-quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.dashboard-quicklink-card {
  position: relative;
  display: grid;
  gap: .45rem;
  padding: 1rem 1rem .95rem;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.08);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: inherit;
}
.dashboard-quicklink-card:hover {
  border-color: rgba(53,109,255,.18);
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
}
.dashboard-quicklink-accent {
  width: 42px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}
.dashboard-quicklink-card strong {
  font-size: 18px;
  color: #0f172a;
}
.dashboard-quicklink-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.dashboard-quicklink-action {
  margin-top: .25rem;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.accent-blue { color: #356dff; background: rgba(53,109,255,.12); }
.accent-green { color: #22b45d; background: rgba(34,180,93,.12); }
.accent-gold { color: #d79311; background: rgba(215,147,17,.12); }
.accent-violet { color: #7d53f6; background: rgba(125,83,246,.12); }
.accent-red { color: #ef5b68; background: rgba(239,91,104,.12); }
.accent-cyan { color: #1da8f2; background: rgba(29,168,242,.12); }
.accent-teal { color: #0ea5a8; background: rgba(14,165,168,.12); }
.dashboard-breakdown-dot.accent-blue,
.dashboard-quicklink-accent.accent-blue { background: #356dff; }
.dashboard-breakdown-dot.accent-green,
.dashboard-quicklink-accent.accent-green { background: #22b45d; }
.dashboard-breakdown-dot.accent-gold,
.dashboard-quicklink-accent.accent-gold { background: #d79311; }
.dashboard-breakdown-dot.accent-violet,
.dashboard-quicklink-accent.accent-violet { background: #7d53f6; }
.dashboard-breakdown-dot.accent-red,
.dashboard-quicklink-accent.accent-red { background: #ef5b68; }
.dashboard-breakdown-dot.accent-cyan,
.dashboard-quicklink-accent.accent-cyan { background: #1da8f2; }
.dashboard-breakdown-dot.accent-teal,
.dashboard-quicklink-accent.accent-teal { background: #0ea5a8; }

@media (max-width: 1199px) {
  .workspace-grid, .placeholder-shell { grid-template-columns: 1fr; }
  .dashboard-admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-admin-grid { grid-template-columns: 1fr; }
  .dashboard-metrics-grid,
  .dashboard-quicklinks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .app-topbar {
    grid-template-columns: auto 1fr auto;
    gap: .6rem;
  }
  .topbar-nav { padding-bottom: .1rem; }
  .context-sidebar {
    transform: translateX(-100%);
    box-shadow: 0 18px 36px rgba(16,24,40,.18);
    z-index: 1035;
  }
  .app-shell[data-sidebar-state="expanded"] .context-sidebar { transform: translateX(0); }
  .main-content { margin-left: 0; padding: .75rem; }
  .form-grid, .selection-grid, .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .app-topbar { padding-inline: .55rem; }
  .brandmark-copy small, .topbar-badge, .topbar-user span, .entity-context-chip { display: none; }
  .filter-field, .filter-field-wide { min-width: 100%; }
  .page-header-brand { width: 40px; height: 40px; }
  .page-header-brand-entity { width: 58px; height: 40px; }
  .dashboard-admin-header {
    padding: .95rem 1rem;
    display: grid;
    gap: .85rem;
  }
  .dashboard-admin-title h1 { font-size: 26px; }
  .dashboard-admin-logos {
    justify-content: flex-start;
    gap: .75rem;
    min-height: 0;
    padding: .65rem .75rem;
    flex-wrap: wrap;
  }
  .dashboard-admin-logos-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
    background: linear-gradient(90deg, transparent 0%, rgba(148,163,184,.42) 18%, rgba(148,163,184,.42) 82%, transparent 100%);
  }
  .dashboard-admin-logo-meuclassico { width: 190px; max-height: 72px; }
  .dashboard-admin-logo-acdb { width: 150px; max-height: 72px; }
  .dashboard-admin-metrics { grid-template-columns: 1fr; }
  .dashboard-admin-card { grid-template-columns: 34px minmax(0, 1fr); }
  .dashboard-admin-card-copy strong { font-size: 24px; }
  .dashboard-main-content { padding: .85rem; }
  .dashboard-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1rem;
    gap: .85rem;
  }
  .dashboard-hero-divider {
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, .45) 18%, rgba(148, 163, 184, .45) 82%, transparent 100%);
  }
  .dashboard-hero-brand {
    min-height: 110px;
  }
  .dashboard-hero-brand img,
  .dashboard-hero-brand-right img {
    max-width: 100%;
    max-height: 88px;
  }
  .dashboard-metrics-grid,
  .dashboard-quicklinks-grid { grid-template-columns: 1fr; }
  .dashboard-breakdown-body { grid-template-columns: 1fr; }
  .dashboard-donut { width: 184px; height: 184px; }
  .dashboard-donut-center { width: 112px; height: 112px; }
  .dashboard-panel-header h3 { font-size: 22px; }
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(191, 146, 58, .14), transparent 24%),
    radial-gradient(circle at left 18%, rgba(255,255,255,.05), transparent 26%),
    linear-gradient(180deg, #0a0d12 0%, #12161d 50%, #171b23 100%);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.login-card {
  width: min(100%, 720px);
  padding: 1.55rem 1.55rem 1.45rem;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(22, 27, 35, .98) 0%, rgba(18, 22, 29, .98) 100%);
  box-shadow:
    0 34px 90px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.05);
  color: #f8fafc;
}
.login-brand-stage {
  margin-bottom: 1.45rem;
}
.login-brand-panel {
  display: grid;
  gap: .7rem;
}
.login-brand-kicker {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(214, 221, 232, .62);
  padding-left: .15rem;
}
.login-brand {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: .9rem 1rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(201, 156, 66, .24);
  background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(247,249,252,.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 10px 28px rgba(0,0,0,.18);
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.06);
  pointer-events: none;
}
.login-brand::after {
  display: none;
}
.login-brand-portal img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  max-height: 172px;
  display: block;
  object-fit: contain;
  object-position: center;
}
.login-copy {
  margin-bottom: 1rem;
}
.login-copy h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}
.login-copy p {
  margin: .45rem 0 0;
  font-size: 14px;
  color: rgba(226,232,240,.74);
}
.login-form {
  display: grid;
  gap: .95rem;
}
.login-form .form-field {
  display: grid;
  gap: .38rem;
}
.login-form .form-field label {
  color: #e7edf5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
.login-form .form-control {
  min-height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.11);
  color: #fff;
}
.login-form .form-control::placeholder {
  color: rgba(226,232,240,.34);
}
.login-form .form-control:focus {
  background: rgba(255,255,255,.07);
  color: #fff;
  border-color: rgba(201, 156, 66, .52);
  box-shadow: 0 0 0 .18rem rgba(191, 146, 58, .16);
}
.login-challenge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
}
.challenge-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .3rem .8rem;
  border-radius: 12px;
  border: 1px solid rgba(191, 146, 58, .18);
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.login-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .15rem;
}
.login-actions .btn {
  min-height: 40px;
  border-radius: 12px;
  padding-inline: .95rem;
}
.login-feedback {
  margin-bottom: 1rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  font-weight: 600;
}
.login-feedback.is-success {
  background: rgba(20, 125, 100, .16);
  border: 1px solid rgba(20, 125, 100, .36);
  color: #b9f8d0;
}
.login-feedback.is-error {
  background: rgba(180, 35, 24, .16);
  border: 1px solid rgba(180, 35, 24, .36);
  color: #ffd7d3;
}
@media (max-width: 767px) {
  .login-shell {
    padding: 1rem;
  }
  .login-card {
    padding: 1.15rem;
    border-radius: 22px;
  }
  .login-brand {
    min-height: 172px;
    padding: .7rem .75rem;
    border-radius: 18px;
  }
  .login-brand::before {
    inset: 8px;
    border-radius: 13px;
  }
  .login-brand-portal img {
    width: 100%;
    max-height: 124px;
  }
  .login-copy h1 {
    font-size: 28px;
  }
  .login-challenge {
    grid-template-columns: 1fr;
  }
  .challenge-badge {
    justify-content: flex-start;
  }
}
