/* DGP Elite: camada visual empresarial isolada do CV Oficial. */
:root {
  --navy-950: #071d3b;
  --navy-900: #0b315b;
  --navy-800: #114b80;
  --blue-700: #116fca;
  --blue-600: #2d8fe3;
  --blue-100: #e7f2fd;
  --teal-700: #087b68;
  --teal-100: #dff5ef;
  --amber-700: #b97000;
  --amber-100: #fff1cf;
  --red-700: #b52f43;
  --red-100: #fde7eb;
  --purple-700: #6840aa;
  --purple-100: #eee5fa;
  --ink: #10233d;
  --muted: #52657b;
  --line: #c6d4e3;
  --line-strong: #8fa7bf;
  --surface-soft: #eef3f8;
  --surface-muted: #e4ebf3;
  --topbar-h: 72px;
  --sidebar-w: 300px;
  font-size: 16px;
}

/* Tema empresarial: esta folha carrega por último e garante contraste real. */
html[data-enterprise-theme="dark"] .enterprise-main .dashboard-kpi,
html[data-enterprise-theme="dark"] .enterprise-main .quick-action,
html[data-enterprise-theme="dark"] .enterprise-main .quick-actions-band,
html[data-enterprise-theme="dark"] .enterprise-main .dashboard-priority,
html[data-enterprise-theme="dark"] .enterprise-main .dashboard-flow {
  color: #edf4fa;
  background: #122235;
  border-color: #40566a;
}
html[data-enterprise-theme="dark"] .enterprise-main .dashboard-kpi strong,
html[data-enterprise-theme="dark"] .enterprise-main .quick-action strong,
html[data-enterprise-theme="dark"] .enterprise-main .quick-actions-band h2 {
  color: #edf4fa;
}
html[data-enterprise-theme="dark"] .enterprise-main .dashboard-kpi :is(span,small),
html[data-enterprise-theme="dark"] .enterprise-main .quick-action small,
html[data-enterprise-theme="dark"] .enterprise-main .quick-actions-band .cell-secondary {
  color: #afc0cf;
}

/* Tema escuro completo: superfícies e controles que ainda tinham cores claras fixas. */
html[data-enterprise-theme="dark"] .enterprise-main .worklist,
html[data-enterprise-theme="dark"] .enterprise-main .worklist tbody,
html[data-enterprise-theme="dark"] .enterprise-main .worklist tr,
html[data-enterprise-theme="dark"] .enterprise-main .worklist td,
html[data-enterprise-theme="dark"] .enterprise-main .dashboard-priority-list .table-wrap {
  color: #dbe8f2;
  background: #122235;
  border-color: #40566a;
}

html[data-enterprise-theme="dark"] .enterprise-main .worklist th {
  color: #c8d6e2;
  background: #1a3046;
  border-color: #526a80;
}

html[data-enterprise-theme="dark"] .enterprise-main .worklist tbody tr:hover {
  background: #1d3851;
}

html[data-enterprise-theme="dark"] .enterprise-main .empty-state {
  color: #b9c9d6;
  background: #122235;
  border-color: #40566a;
}

html[data-enterprise-theme="dark"] .enterprise-main .empty-state :is(svg, .empty-state-icon) {
  color: #62b8f5;
  stroke: currentColor;
}

html[data-enterprise-theme="dark"] .enterprise-main .empty-state strong {
  color: #f3f7fb;
}

html[data-enterprise-theme="dark"] .enterprise-main .cv-bridge-node {
  color: #dbe8f2;
  background: #172a3d;
  border-color: #526a80;
}

html[data-enterprise-theme="dark"] .enterprise-main .cv-bridge-node strong {
  color: #f3f7fb;
}

html[data-enterprise-theme="dark"] .enterprise-main .cv-bridge-node small,
html[data-enterprise-theme="dark"] .enterprise-main .cv-bridge-note {
  color: #bdcbd7;
}

html[data-enterprise-theme="dark"] .enterprise-main .button.secondary {
  color: #e7f0f7;
  background: #172a3d;
  border-color: #60788e;
}

html[data-enterprise-theme="dark"] .enterprise-main .button.secondary:hover {
  color: #ffffff;
  background: #24445f;
  border-color: #76b9eb;
}

html[data-enterprise-theme="dark"] .enterprise-main :is(.dashboard-kicker, .section-kicker) {
  color: #f0c96f;
}

html[data-enterprise-theme="dark"] .enterprise-main :is(input, select, textarea) {
  color: #edf4fa;
  background: #172a3d;
  border-color: #526a80;
}

html[data-enterprise-theme="dark"] .enterprise-main :is(input, textarea)::placeholder {
  color: #9fb1c1;
}

.topbar {
  grid-template-columns: minmax(170px, 1fr);
  gap: 1rem;
  padding: 0.65rem 1.15rem;
  border-bottom-color: #afc1d3;
  box-shadow: 0 4px 16px rgba(7, 29, 59, 0.09);
}

.topbar-context span {
  font-size: 0.7rem;
}

.topbar-context strong {
  font-size: 0.98rem;
}

.sidebar {
  padding: 0.85rem 0.75rem 0.75rem;
  background: #071f3c;
  border-right-color: #1b4976;
  box-shadow: 5px 0 22px rgba(4, 24, 47, 0.16);
}

.sidebar-brand-shell {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.18rem 0.15rem 0.55rem;
  border-bottom: 0;
}

.brand {
  min-height: 54px;
  min-width: 0;
  gap: 0.5rem;
  padding: 0;
  border-bottom: 0;
}

.sidebar-brand-shell .brand span {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
}

.sidebar-brand-shell .brand :is(strong, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.brand strong {
  font-size: 0.96rem;
  line-height: 1.18;
}

.brand small {
  margin-top: 0.16rem;
  font-size: 0.68rem;
  line-height: 1.25;
}

.brand-scope-badge {
  width: 76px;
  max-width: 100%;
  min-height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.16rem 0 0;
  padding: 0.15rem 0.38rem;
  overflow: hidden;
  color: #ffffff !important;
  background: #1765b0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: var(--scope-font-size, 0.54rem) !important;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-scope-badge[data-tone="aggregate"] { background: #6e44a3; }
.brand-scope-badge[data-tone="branch-1"] { background: #16836c; }
.brand-scope-badge[data-tone="branch-2"] { color: #17233c !important; background: #e3ad2f; }
.brand-scope-badge[data-tone="branch-3"] { background: #b64e4e; }
.brand-scope-badge[data-tone="branch-4"] { background: #197e9b; }
.brand-scope-badge[data-tone="branch-5"] { background: #7654b5; }

.sidebar-collapse {
  top: 91px;
  left: var(--sidebar-active-w);
  z-index: 61;
  width: 26px;
  height: 58px;
  padding: 0;
  color: #fff;
  background: linear-gradient(165deg, var(--blue-700), var(--navy-800));
  border: 1px solid rgba(230, 181, 63, 0.45);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 3px 4px 14px -5px rgba(6, 14, 50, 0.6);
}

.sidebar-collapse:hover {
  color: #fff;
  filter: brightness(1.18);
  border-color: rgba(230, 181, 63, 0.7);
  box-shadow: 3px 4px 18px -4px rgba(6, 14, 50, 0.7);
}

body.sidebar-collapsed .sidebar-collapse {
  left: var(--sidebar-active-w);
}

body.sidebar-collapsed .sidebar-brand-shell {
  grid-template-columns: 1fr;
  grid-template-rows: 58px;
  min-height: 64px;
  padding-inline: 0;
}

body.sidebar-collapsed .sidebar-brand-shell .enterprise-workspace-switch,
body.sidebar-collapsed .brand-scope-badge,
body.sidebar-collapsed .sidebar-user-actions {
  display: none;
}

body.sidebar-collapsed .brand img {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
}

.enterprise-workspace-switch {
  width: 116px;
  height: 36px;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  padding: 3px;
  border: 1px solid #c8d3e3;
  border-radius: 999px;
  background: #f3f6fa;
  box-shadow: 0 5px 13px rgba(17, 42, 76, 0.12);
}

.sidebar-user {
  min-height: 50px;
  grid-template-columns: minmax(0, 1fr) 98px;
  gap: 0.4rem;
  margin: 0.4rem 0 0.55rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(139, 184, 222, 0.24);
  border-bottom-color: rgba(139, 184, 222, 0.24);
}

.sidebar-account-button {
  position: relative;
  min-width: 0;
  height: 38px;
  display: grid;
  /*
   * O NOME TEM PISO E O SELO CEDE (05/09/2026). Era `minmax(0, 1fr) auto`: a
   * coluna `auto` do selo do papel ficava com a largura inteira do texto dela,
   * e a do nome com o que sobrasse. Com "ADM" sobravam 100px e ninguem viu.
   * Com "Conta empresarial" (90px) sobraram 25px, medidos na tela, e o nome
   * "Google Reviewer" virou "Goo / gle / Revi / ewer". Agora o nome nunca
   * fica abaixo de 3.4rem e o selo encolhe com reticencias.
   */
  grid-template-columns: 28px minmax(3.4rem, 1fr) minmax(0, auto);
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  padding: 4px 8px 4px 4px;
  color: #ffffff;
  background: linear-gradient(135deg, #0e4b86 0%, #1473bd 72%, #1185c8 100%);
  border: 1px solid rgba(112, 190, 244, 0.62);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(2, 22, 48, 0.3), inset 0 1px rgba(255, 255, 255, 0.16);
  text-align: left;
}

.sidebar-account-button::after {
  position: absolute;
  inset: -45% auto -45% -42%;
  width: 34%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg);
  transition: left 260ms ease;
}

.sidebar-account-button:hover::after,
.sidebar-account-button[aria-expanded="true"]::after {
  left: 112%;
}

.sidebar-account-button:hover,
.sidebar-account-button[aria-expanded="true"] {
  filter: brightness(1.08);
  box-shadow: 0 5px 15px rgba(2, 22, 48, 0.38), 0 0 0 2px rgba(79, 171, 234, 0.16);
}

.sidebar-account-button:focus-visible {
  outline: 2px solid #f0c34b;
  outline-offset: 2px;
}

.sidebar-account-button .sidebar-user-avatar {
  width: 28px;
  height: 28px;
  color: #0a4278;
  background: #ffffff;
  border: 2px solid #b8e0fb;
  font-size: 0.58rem;
  overflow: hidden;
}

.sidebar-account-button .sidebar-user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.sidebar-account-button .sidebar-user-copy {
  display: contents;
}

.sidebar-account-button .sidebar-user-copy strong {
  min-width: 0;
  color: #ffffff;
  font-size: var(--sidebar-account-name-size, 0.64rem);
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  /*
   * Quebra SO no espaco, nunca dentro da palavra, e no maximo duas linhas.
   * `overflow-wrap: anywhere` era o que partia "Google" em "Goo / gle" quando
   * a coluna encolhia; com o piso da coluna e o corte em duas linhas, um nome
   * longo vira "Google / Reviewer" e um nome enorme ganha reticencias no fim.
   */
  overflow-wrap: normal;
  word-break: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-account-button .sidebar-user-copy small {
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  /* o selo e a informacao secundaria: quando falta espaco, ele encolhe com
     reticencias e o nome fica inteiro. `min-width: 0` e o que deixa a coluna
     `minmax(0, auto)` do botao encolher de fato. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.08rem 0.3rem;
  color: #123e67;
  background: #e9f5fd;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.sidebar-user-actions {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  align-items: center;
  justify-content: end;
  gap: 4px;
}

.sidebar-utility {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #d7e8f8;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(170, 205, 235, 0.2);
  border-radius: 6px;
}

.sidebar-utility:hover:not(:disabled),
.sidebar-utility[aria-expanded="true"] {
  color: #ffffff;
  background: #1765b0;
  border-color: #6eb4ea;
  box-shadow: 0 0 0 2px rgba(58, 151, 223, 0.16);
}

.sidebar-utility:disabled {
  color: #6f879f;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(170, 205, 235, 0.1);
  cursor: default;
  opacity: 0.62;
}

.sidebar-utility svg { width: 16px; height: 16px; }

.sidebar-utility .counter {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding-inline: 0.2rem;
  border: 2px solid #071f3c;
  font-size: 0.56rem;
}

.sidebar-utility .notification-dot {
  top: 3px;
  right: 3px;
  border-color: #071f3c;
}

body.sidebar-collapsed .sidebar-user {
  grid-template-columns: 1fr;
  justify-items: center;
}

body.sidebar-collapsed .sidebar-account-button {
  width: 38px;
  grid-template-columns: 28px;
  justify-content: center;
  padding: 4px;
}

.unit-scope-panel,
.notification-panel {
  position: fixed;
  z-index: 80;
  top: 80px;
  right: auto;
  left: calc(var(--sidebar-active-w) + 12px);
  width: min(370px, calc(100vw - var(--sidebar-active-w) - 28px));
  max-height: min(620px, calc(100dvh - 96px));
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #b8c9da;
  border-radius: 7px;
  box-shadow: 0 18px 46px rgba(4, 24, 47, 0.24);
}

.unit-scope-panel[hidden] { display: none; }

.account-panel {
  position: fixed;
  z-index: 80;
  top: 80px;
  right: auto;
  left: calc(var(--sidebar-active-w) + 12px);
  width: min(340px, calc(100vw - var(--sidebar-active-w) - 28px));
  max-height: min(620px, calc(100dvh - 96px));
}

.unit-scope-panel > header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #d6e0ea;
}

.unit-scope-panel > header > div { display: grid; gap: 0.08rem; }
.unit-scope-panel > header span { color: #61788e; font-size: 0.61rem; font-weight: 800; text-transform: uppercase; }
.unit-scope-panel h2 { margin: 0; color: #082342; font-size: 0.92rem; }

.unit-scope-list {
  max-height: min(540px, calc(100dvh - 168px));
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.unit-scope-option {
  position: relative;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
  color: #172d46;
  background: #f8fafc;
  border: 1px solid #d4dee8;
  border-left: 4px solid var(--unit-tone, #1765b0);
  border-radius: 6px;
  text-align: left;
}

.unit-scope-option[data-tone="headquarters"] { --unit-tone: #1765b0; }
.unit-scope-option[data-tone="aggregate"] { --unit-tone: #6e44a3; }
.unit-scope-option[data-tone="branch-1"] { --unit-tone: #16836c; }
.unit-scope-option[data-tone="branch-2"] { --unit-tone: #d49b13; }
.unit-scope-option[data-tone="branch-3"] { --unit-tone: #b64e4e; }
.unit-scope-option[data-tone="branch-4"] { --unit-tone: #197e9b; }
.unit-scope-option[data-tone="branch-5"] { --unit-tone: #7654b5; }

.unit-scope-option:hover { background: #f0f6fb; border-color: #91b9db; border-left-color: var(--unit-tone); }
.unit-scope-option.is-active { background: #edf6fd; border-color: #79add8; border-left-color: var(--unit-tone); box-shadow: 0 0 0 2px rgba(23, 101, 176, 0.1); }

.unit-scope-option-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--unit-tone);
  border-radius: 6px;
}

.unit-scope-option-icon svg { width: 19px; height: 19px; }
.unit-scope-option-copy { min-width: 0; display: grid; gap: 0.12rem; }
.unit-kind-label { width: fit-content; color: var(--unit-tone); font-size: 0.57rem; font-weight: 900; text-transform: uppercase; }
.unit-scope-option-copy strong { overflow: hidden; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.unit-scope-option-copy small { overflow: hidden; color: #62778c; font-size: 0.63rem; text-overflow: ellipsis; white-space: nowrap; }
.unit-scope-option-copy small b { color: #304b66; font-size: 0.58rem; text-transform: uppercase; }
.unit-scope-selected { width: 10px; height: 10px; background: transparent; border: 2px solid #b5c4d1; border-radius: 50%; }
.unit-scope-option.is-active .unit-scope-selected { background: var(--unit-tone); border-color: var(--unit-tone); box-shadow: 0 0 0 3px #ffffff inset; }

html[data-enterprise-theme="dark"] :is(.unit-scope-panel, .notification-panel) { color: #edf4fa; background: #122235; border-color: #40566a; }
html[data-enterprise-theme="dark"] .unit-scope-panel > header { border-color: #40566a; }
html[data-enterprise-theme="dark"] .unit-scope-panel h2 { color: #f3f7fb; }
html[data-enterprise-theme="dark"] .unit-scope-option { color: #edf4fa; background: #172a3d; border-color: #40566a; border-left-color: var(--unit-tone); }
html[data-enterprise-theme="dark"] .unit-scope-option:hover,
html[data-enterprise-theme="dark"] .unit-scope-option.is-active { background: #203a52; border-color: #6a8ba8; border-left-color: var(--unit-tone); }
html[data-enterprise-theme="dark"] .unit-scope-option-copy small { color: #b9c8d5; }
html[data-enterprise-theme="dark"] .unit-scope-option-copy small b { color: #dce8f2; }

.unit-admin-row {
  border-left: 4px solid var(--unit-tone, #1765b0);
}

.unit-admin-row[data-tone="headquarters"] { --unit-tone: #1765b0; }
.unit-admin-row[data-tone="branch-1"] { --unit-tone: #16836c; }
.unit-admin-row[data-tone="branch-2"] { --unit-tone: #d49b13; }
.unit-admin-row[data-tone="branch-3"] { --unit-tone: #b64e4e; }
.unit-admin-row[data-tone="branch-4"] { --unit-tone: #197e9b; }
.unit-admin-row[data-tone="branch-5"] { --unit-tone: #7654b5; }
.unit-admin-row > svg { color: var(--unit-tone); }

.admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

@media (max-width: 520px) {
  .unit-admin-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .unit-admin-row .admin-row-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

.enterprise-workspace-option {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  flex: 1 1 50%;
  min-width: 0;
  height: 28px;
  padding: 0 5px;
  font: 800 9.2px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.enterprise-workspace-option[data-workspace="company"].is-active,
.enterprise-workspace-option[data-workspace="company"]:active {
  color: #ffffff;
  background: #b53a45;
  box-shadow:
    0 5px 13px rgba(181, 58, 69, 0.38),
    0 0 16px rgba(181, 58, 69, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.62) inset;
  filter: saturate(1.12) brightness(1.06);
  transition-duration: 0s;
}

.enterprise-workspace-option[data-workspace="candidate"].is-active,
.enterprise-workspace-option[data-workspace="candidate"]:active {
  color: #ffffff;
  background: #1765b0;
  box-shadow:
    0 5px 13px rgba(23, 101, 176, 0.38),
    0 0 16px rgba(23, 101, 176, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.62) inset;
  filter: saturate(1.12) brightness(1.06);
  transition-duration: 0s;
}

@keyframes enterprise-workspace-selection-pulse {
  0% { transform: scale(0.96); }
  58% { transform: scale(1.045); }
  100% { transform: scale(1); }
}

.enterprise-workspace-option.enterprise-workspace-selection-pulse.is-active {
  animation: enterprise-workspace-selection-pulse 400ms ease-out;
}

.enterprise-workspace-option[data-workspace="company"].is-active:is(:hover, :focus-visible),
.enterprise-workspace-option[data-workspace="company"]:active {
  filter: brightness(1.08);
  box-shadow:
    0 6px 14px rgba(181, 58, 69, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.42) inset;
}

.enterprise-workspace-option[data-workspace="candidate"].is-active:is(:hover, :focus-visible),
.enterprise-workspace-option[data-workspace="candidate"]:active {
  filter: brightness(1.08);
  box-shadow:
    0 6px 14px rgba(23, 101, 176, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.42) inset;
}

.sidebar-organization {
  min-height: 52px;
  margin: 0.72rem 0 0.48rem;
  padding: 0.5rem 0.58rem;
  background: #293b6a;
  border-color: #4b6095;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar-organization-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sidebar-organization strong {
  font-size: 0.78rem;
}

.sidebar-organization small {
  color: #b8cce0;
  font-size: 0.69rem;
}

.sidebar nav {
  gap: 0;
}

.nav-group {
  gap: 0.16rem;
}

.nav-group + .nav-group {
  margin-top: 0.72rem;
  padding-top: 0;
  border-top: 0;
}

.nav-group-toggle {
  min-height: 38px;
  padding: 0.5rem 0.55rem;
  color: #b5d8f4;
  font-size: 0.7rem;
  letter-spacing: 0.045em;
}

.sidebar-actions button {
  font-size: 0.7rem;
}

.nav-group-toggle:hover,
.nav-group-toggle:focus-visible {
  color: #fff;
  background: #15466f;
}

body.sidebar-collapsed .nav-group + .nav-group {
  margin-top: 0.18rem;
  padding-top: 0;
  border-top: 0;
}

.nav-group-items {
  gap: 0.18rem;
}

.nav-group-label {
  margin: 0.55rem 0.4rem 0.16rem;
  color: #78a9d4;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.nav-item {
  min-height: 42px;
  gap: 0.75rem;
  padding: 0 0.7rem;
  border-radius: 6px;
  font-size: 0.83rem;
}

.nav-item:hover {
  background: #123d69;
}

.nav-item.is-active {
  background: #126ab9;
  box-shadow: inset 3px 0 #f2bf32;
}

.sidebar-foot {
  min-height: 48px;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.65rem 0.55rem 0.2rem;
  border-top-color: #285078;
}

.sidebar-foot strong {
  font-size: 0.7rem;
}

.sidebar-foot small {
  color: #9eb8d1;
  font-size: 0.63rem;
}

.sidebar-release-state {
  width: 9px;
  height: 9px;
  background: #3ed198;
  border: 2px solid #0c513e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(62, 209, 152, 0.12);
}

.enterprise-main {
  padding: calc(var(--topbar-h) + 1rem) clamp(1rem, 2vw, 2rem) 2rem;
}

.environment-banner {
  max-width: 1540px;
  min-height: 42px;
  margin: 0 auto 1rem;
  padding: 0.5rem 0.75rem;
  color: #18503e;
  background: #e8f7f1;
  border-color: #8ecbb7;
  border-left: 4px solid var(--teal-700);
  font-size: 0.79rem;
}

.environment-banner button {
  color: #18503e;
}

.view {
  max-width: 1540px;
}

.view-header {
  min-height: 68px;
  align-items: center;
  padding-bottom: 0.85rem;
}

.view-title h1 {
  font-size: 1.65rem;
}

.view-title p {
  font-size: 0.88rem;
}

.button,
.segmented button {
  min-height: 38px;
  font-size: 0.82rem;
}

.link-button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0;
  color: var(--blue-700);
  background: transparent;
  border: 0;
  font-weight: 750;
  text-align: left;
}

.link-button:hover {
  color: var(--navy-950);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
}

.worklist .process-open {
  width: 100%;
  display: grid;
  gap: 0.16rem;
  color: var(--navy-950);
  text-decoration: none;
}

.worklist .process-open:hover .cell-primary {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.priority-summary > .link-button {
  min-height: 38px;
  align-self: stretch;
  justify-content: space-between;
  margin-top: 0.45rem;
  padding: 0.55rem 0.7rem;
  background: #f1f7fd;
  border: 1px solid #b5cbe0;
  border-radius: 5px;
  text-decoration: none;
}

.priority-summary > .link-button:hover {
  background: #e4f1fc;
  border-color: var(--blue-600);
  text-decoration: none;
}

.section-band {
  border-radius: 7px;
  box-shadow: 0 2px 9px rgba(7, 29, 59, 0.045);
}

.section-band > header {
  min-height: 54px;
  padding: 0.75rem 0.9rem;
}

.section-band > header h2 {
  font-size: 0.96rem;
}

.section-band > header p,
.cell-secondary {
  font-size: 0.72rem;
}

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.94fr) 250px;
  gap: 1rem;
  margin-top: 1rem;
  align-items: stretch;
}

.announcement-portal {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  color: #fff;
  background-color: var(--navy-900);
  background-image: url("assets/informativo-equipe-v1.webp");
  background-position: center;
  background-size: cover;
  border: 1px solid #174c7d;
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(7, 29, 59, 0.14);
}

.announcement-portal::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(5, 27, 54, 0.62);
  pointer-events: none;
}

.announcement-header,
.announcement-content,
.announcement-footer {
  position: relative;
  z-index: 1;
}

.announcement-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  background: rgba(5, 26, 51, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.announcement-header strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.announcement-header small {
  color: #dce9f7;
  font-size: 0.68rem;
}

.announcement-content {
  width: min(62%, 480px);
  min-height: 204px;
  display: grid;
  align-content: center;
  padding: 1.15rem 1.25rem;
}

.announcement-content span {
  justify-self: start;
  padding: 0.24rem 0.5rem;
  color: #112744;
  background: #f0bd31;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.announcement-content h2 {
  margin: 0.7rem 0 0;
  font-size: 1.65rem;
  line-height: 1.13;
}

.announcement-content p {
  margin: 0.55rem 0 0;
  color: #e4edf7;
  font-size: 0.88rem;
  line-height: 1.5;
}

.announcement-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.8rem;
  background: rgba(5, 26, 51, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.announcement-footer small {
  color: #c6d8eb;
  font-size: 0.68rem;
}

.announcement-footer .button {
  min-height: 32px;
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.48);
}

.priority-board {
  min-height: 300px;
}

.priority-board .section-body {
  min-height: 244px;
  display: grid;
  align-content: center;
}

.priority-summary {
  display: grid;
  gap: 0.7rem;
}

.priority-summary.is-empty {
  place-items: center;
  align-content: center;
  text-align: center;
}

.priority-summary.is-empty .priority-state {
  width: 32px;
  height: 32px;
  color: var(--blue-600);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.priority-summary.is-empty .priority-state svg {
  width: 32px;
  height: 32px;
}

.priority-summary.is-empty > .link-button {
  width: 100%;
  justify-self: stretch;
  text-align: left;
}

.priority-summary strong {
  color: var(--navy-950);
  font-size: 1.08rem;
}

.priority-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.priority-state {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-100);
  border: 1px solid #9cd8c5;
  border-radius: 50%;
}

.priority-state.is-alert {
  color: var(--red-700);
  background: var(--red-100);
  border-color: #e5a5ae;
}

.dashboard-kpi-stack {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.dashboard-kpi {
  min-height: 52px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-700);
  border-radius: 6px;
}

.dashboard-kpi > svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 5px;
}

.dashboard-kpi span {
  min-width: 0;
  display: grid;
}

.dashboard-kpi small {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.dashboard-kpi strong {
  font-size: 1.25rem;
}

.dashboard-kpi.is-red { border-left-color: var(--red-700); }
.dashboard-kpi.is-red > svg { color: var(--red-700); background: var(--red-100); }
.dashboard-kpi.is-green { border-left-color: var(--teal-700); }
.dashboard-kpi.is-green > svg { color: var(--teal-700); background: var(--teal-100); }
.dashboard-kpi.is-amber { border-left-color: var(--amber-700); }
.dashboard-kpi.is-amber > svg { color: var(--amber-700); background: var(--amber-100); }
.dashboard-kpi.is-purple { border-left-color: var(--purple-700); }
.dashboard-kpi.is-purple > svg { color: var(--purple-700); background: var(--purple-100); }

.quick-actions-band {
  margin: 1rem 0;
  padding: 0.9rem;
  border-radius: 7px;
}

.quick-actions-band h2 {
  font-size: 0.98rem;
}

.quick-action {
  min-height: 78px;
  background: #f7fafd;
  border-radius: 6px;
}

.quick-action strong {
  font-size: 0.81rem;
}

.quick-action small {
  font-size: 0.7rem;
}

.dashboard-grid,
.dashboard-lower-grid {
  gap: 1rem;
}

.import-source-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.import-source-option {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.import-source-option:has(input:checked) {
  background: var(--blue-100);
  border-color: var(--blue-700);
  box-shadow: inset 0 0 0 1px var(--blue-700);
}

.import-source-option input {
  position: absolute;
  opacity: 0;
}

.import-source-option > svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 5px;
}

.import-source-option span {
  display: grid;
  gap: 0.2rem;
}

.import-source-option strong {
  font-size: 0.84rem;
}

.import-source-option small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.import-mode-panel {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.import-mode-panel[hidden] {
  display: none;
}

.import-safety-note {
  padding: 0.65rem 0.75rem;
  color: #394f67;
  background: #edf4fb;
  border-left: 4px solid var(--blue-700);
  font-size: 0.73rem;
}

.app-dialog {
  width: min(660px, calc(100vw - 2rem));
  max-height: min(88dvh, 820px);
  overflow: hidden;
  border-color: #9eb2c7;
  box-shadow: 0 18px 55px rgba(4, 21, 42, 0.28);
}

.app-dialog form {
  max-height: min(88dvh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.app-dialog header {
  min-height: 70px;
  align-items: center;
  padding: 0.9rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.dialog-kicker {
  color: var(--blue-700);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.app-dialog h2 {
  margin-top: 0.2rem;
  color: var(--navy-950);
  font-size: 1.2rem;
}

.dialog-body {
  min-height: 0;
  overflow: auto;
  padding: 1rem;
  background: #eef5fc;
  scrollbar-gutter: stable;
}

.dialog-body > p:first-child {
  margin: 0 0 0.9rem;
  color: #3b5169;
  font-size: 0.8rem;
  line-height: 1.45;
}

.dialog-body label {
  gap: 0.32rem;
  margin-bottom: 0.7rem;
  color: #253d58;
  font-size: 0.76rem;
}

.dialog-body input,
.dialog-body select,
.dialog-body textarea {
  min-height: 42px;
  padding: 0.6rem 0.65rem;
  color: var(--ink);
  background: #fff;
  border-color: #adc0d3;
  font-size: 0.82rem;
}

.dialog-body input:focus,
.dialog-body select:focus,
.dialog-body textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(17, 111, 202, 0.12);
  outline: 0;
}

.dialog-section + .dialog-section {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top-color: #aec2d6;
}

.dialog-section h3 {
  color: var(--navy-950);
  font-size: 0.88rem;
}

.dialog-help,
.dependency-note {
  font-size: 0.72rem;
  line-height: 1.45;
}

.app-dialog footer {
  min-height: 64px;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #fff;
  border-top-color: #aebfd0;
}

.app-dialog footer .button {
  min-width: 112px;
}

.dialog-close {
  width: 38px;
  height: 38px;
}

.dialog-flow-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}

.dialog-flow-guide > span {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.5rem;
  color: #294661;
  background: #fff;
  border: 1px solid #c1d1e0;
  border-radius: 5px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.dialog-flow-guide b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue-700);
  border-radius: 50%;
  font-size: 0.7rem;
}

.app-dialog[data-variant="process-opening"] {
  width: min(940px, calc(100vw - 2rem));
  max-height: min(94dvh, 940px);
}

.app-dialog[data-variant="process-opening"] form {
  max-height: min(94dvh, 940px);
}

.app-dialog[data-variant="process-opening"] > form > header {
  min-height: 66px;
}

.app-dialog[data-variant="process-opening"] .dialog-body {
  padding: 0.9rem 1rem 1.15rem;
  background: #f0f6fc;
}

.process-opening-intro {
  max-width: 760px;
  margin: 0 0 0.75rem;
  color: #425b75;
  line-height: 1.45;
}

.process-scope-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
}

.process-scope-selector.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.process-scope-selector legend {
  grid-column: 1 / -1;
  margin-bottom: 0.1rem;
  color: var(--navy-950);
  font-size: 0.76rem;
  font-weight: 800;
}

.dialog-body .process-scope-card {
  position: relative;
  min-height: 64px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.7rem 0.78rem;
  color: #294661;
  background: #fff;
  border: 1px solid #afc4d8;
  border-left: 5px solid #1976c9;
  border-radius: 6px;
  cursor: pointer;
}

.dialog-body .process-scope-card.is-client {
  border-left-color: #d84a55;
}

.process-scope-card > input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  margin: 0;
  opacity: 0;
}

.process-scope-card > span:not(.process-scope-check) {
  display: grid;
  gap: 0.1rem;
}

.process-scope-card strong {
  color: var(--navy-950);
  font-size: 0.82rem;
}

.process-scope-card small {
  color: #5d7288;
  font-size: 0.68rem;
}

.process-scope-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1976c9;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 120ms ease, transform 120ms ease;
}

.process-scope-card.is-client .process-scope-check {
  background: #c93644;
}

.process-scope-card:has(input:checked) {
  background: #eaf5ff;
  border-color: #1976c9;
  box-shadow: 0 0 0 2px rgb(25 118 201 / 13%);
}

.process-scope-card:focus-within {
  outline: 3px solid rgb(25 118 201 / 28%);
  outline-offset: 2px;
}

.process-scope-card.is-client:focus-within {
  outline-color: rgb(201 54 68 / 28%);
}

.process-scope-card.is-client:has(input:checked) {
  background: #fff0f2;
  border-color: #c93644;
  box-shadow: 0 0 0 2px rgb(201 54 68 / 13%);
}

.process-scope-card:has(input:checked) .process-scope-check {
  opacity: 1;
  transform: scale(1);
}

.process-opening-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-dialog[data-process-scope="own_organization"] .process-opening-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-opening-step {
  appearance: none;
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem;
  color: #526b83;
  text-align: left;
  background: #f8fbfe;
  border: 1px solid #c1d1e0;
  border-radius: 5px;
  cursor: pointer;
}

.process-opening-step[hidden] {
  display: none !important;
}

.process-opening-step:hover,
.process-opening-step:focus-visible {
  color: var(--navy-950);
  border-color: var(--blue-500);
}

.process-opening-step.is-active {
  color: var(--navy-950);
  background: #fff;
  border-color: var(--blue-700);
  box-shadow: inset 0 3px 0 var(--blue-700);
}

.process-opening-step > span {
  display: grid;
  gap: 0.1rem;
}

.process-opening-step strong {
  color: var(--navy-950);
  font-size: 0.75rem;
}

.process-opening-step small {
  color: #5f7288;
  font-size: 0.65rem;
}

.process-opening-step b {
  width: 26px;
  height: 26px;
}

.dialog-body .process-opening-section {
  margin: 0;
  padding: 0;
}

.app-dialog[data-variant="process-opening"] .process-opening-section > header {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0 0 0.72rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.process-opening-section > header > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.process-opening-section > header h3 {
  margin: 0;
  font-size: 0.91rem;
}

.process-opening-section > header > small {
  color: #5b7088;
  font-size: 0.68rem;
  text-align: right;
}

.section-number {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue-700);
  border-radius: 50%;
  font-size: 0.67rem;
  font-weight: 800;
}

.process-opening-section .dialog-fields,
.opening-narrative-grid {
  gap: 0.65rem 0.75rem;
}

.opening-audience-field {
  margin-bottom: 0.7rem;
  padding: 0.7rem;
  background: #e8f2fb;
  border-left: 4px solid var(--blue-700);
}

.opening-audience-field label {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(220px, 1fr);
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.opening-audience-field label > small {
  grid-column: 2;
}

.opening-core-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opening-narrative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-opening-section label,
.opening-narrative-grid label {
  min-width: 0;
  margin-bottom: 0;
}

.process-opening-section label > small {
  color: #657a90;
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.35;
}

.process-opening-section .field-wide,
.opening-narrative-grid .field-wide {
  grid-column: 1 / -1;
}

.opening-company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(210px, 0.65fr);
  align-items: end;
  gap: 0.75rem;
}

.opening-requester-identity small {
  color: #5d7288;
  font-size: 0.63rem;
  font-weight: 700;
}

.opening-readonly-contact input[readonly] {
  color: var(--ink);
  cursor: default;
}

.opening-requester-identity {
  min-height: 54px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  color: #173752;
  background: #e7f1fb;
  border: 1px solid #a9c8e4;
  border-radius: 5px;
}

.opening-requester-identity > svg {
  width: 30px;
  height: 30px;
  padding: 0.42rem;
  color: #126bc0;
  background: #fff;
  border: 1px solid #b9d2e8;
  border-radius: 50%;
}

.opening-requester-identity > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.08rem 0.55rem;
}

.opening-requester-identity strong,
.opening-requester-identity span {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opening-requester-identity small {
  grid-column: 1 / -1;
}

.opening-requester-identity em {
  color: #5e7489;
  font-size: 0.63rem;
  font-style: normal;
  white-space: nowrap;
}

.opening-cnpj-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.opening-cnpj-row .button {
  min-width: 112px;
  align-self: stretch;
}

.opening-registry-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.75rem;
  color: #224a3c;
  background: #e9f8f2;
  border: 1px solid #79bea6;
  border-radius: 5px;
}

.opening-registry-result > div,
.opening-registry-result:not(:has(> div)) {
  display: grid;
  gap: 0.14rem;
}

.opening-registry-result span,
.opening-registry-result small {
  color: #496b60;
  font-size: 0.67rem;
}

.opening-source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  padding: 0.65rem 0.72rem;
  background: #fff;
  border: 1px solid #b9cde0;
  border-left: 4px solid var(--blue-700);
  border-radius: 5px;
}

.opening-source-card > div {
  display: grid;
  gap: 0.14rem;
}

.opening-source-card strong {
  color: var(--navy-950);
  font-size: 0.75rem;
}

.opening-source-card span {
  color: #5a7188;
  font-size: 0.66rem;
}

.opening-source-details {
  margin-bottom: 0.75rem;
  background: #e8f1fa;
  border: 1px solid #b9cde0;
  border-radius: 5px;
}

.opening-source-details > summary {
  padding: 0.62rem 0.72rem;
  color: #194e81;
  font-size: 0.71rem;
  font-weight: 800;
  cursor: pointer;
}

.opening-source-content {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  gap: 0.65rem;
  padding: 0 0.72rem 0.72rem;
}

.opening-source-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.opening-source-actions > span {
  color: #597087;
  font-size: 0.67rem;
}

.opening-source-actions > span[data-state="success"] {
  color: #18714e;
}

.opening-source-actions > span[data-state="error"] {
  color: #a13737;
}

.process-code-notice {
  display: grid;
  grid-template-columns: 130px 132px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  padding: 0.62rem 0.72rem;
  color: #36506b;
  background: #e4effa;
  border-left: 4px solid var(--blue-700);
}

.process-code-notice > span {
  font-size: 0.68rem;
  font-weight: 700;
}

.process-code-notice > strong {
  color: var(--navy-950);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
}

.process-code-notice > small {
  font-size: 0.66rem;
  line-height: 1.35;
}

.commercial-opening-section {
  position: relative;
}

.commercial-opening-section .section-number {
  color: #10253c;
  background: #f4bd28;
}

.opening-commercial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.opening-commercial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(235px, 0.55fr);
  align-items: stretch;
  gap: 0.8rem;
}

.dialog-body .opening-urgency-card {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.72rem;
  background: #fff7dc;
  border: 1px solid #e3bd48;
  border-radius: 5px;
  cursor: pointer;
}

.dialog-body .opening-urgency-card input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.opening-urgency-card > span {
  display: grid;
  gap: 0.16rem;
}

.opening-urgency-card strong {
  color: var(--navy-950);
  font-size: 0.76rem;
}

.opening-urgency-card small {
  color: #6d5b26;
  font-size: 0.65rem;
  line-height: 1.35;
}

.commercial-opening-summary {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  min-height: 100%;
  padding: 0.9rem;
  color: #263f59;
  background: #fff8df;
  border: 1px solid #d5b44a;
  border-top: 5px solid #d59a00;
  border-radius: 5px;
}

.commercial-opening-summary > span {
  font-size: 0.7rem;
  font-weight: 700;
}

.commercial-opening-summary > strong {
  color: #805600;
  font-size: 1.35rem;
}

.commercial-opening-summary > small {
  color: #536a81;
  font-size: 0.67rem;
  line-height: 1.35;
}

.commercial-opening-summary > p {
  margin: 0.35rem 0 0;
  padding-top: 0.5rem;
  color: #536a81;
  border-top: 1px solid #ead68c;
  font-size: 0.67rem;
  line-height: 1.4;
}

.commercial-opening-summary > p.is-exception {
  color: #9d352f;
  font-weight: 700;
}

.opening-footer-progress {
  margin-right: auto;
  color: #526b83;
  font-size: 0.7rem;
  font-weight: 800;
}

.opening-policy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.65rem;
  color: #4b6178;
  font-size: 0.66rem;
  line-height: 1.4;
}

.opening-policy-note strong {
  flex: 0 0 auto;
  color: var(--navy-950);
}

.internal-approval-section .section-number {
  background: #1976c9;
}

.internal-opening-context {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.75rem;
  padding: 0.78rem;
  color: #23425f;
  background: #eaf5ff;
  border: 1px solid #9fc7e7;
  border-left: 5px solid #1976c9;
}

.internal-opening-context > span,
.internal-opening-context > small {
  color: #58738c;
  font-size: 0.67rem;
}

.internal-opening-context > strong {
  color: var(--navy-950);
  font-size: 0.86rem;
}

.opening-policy-note.is-internal {
  padding: 0.65rem 0.72rem;
  background: #eaf5ff;
  border-left: 4px solid #1976c9;
}

.process-list-title {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.process-list-title > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-scope-badge {
  flex: 0 0 auto;
  padding: 0.16rem 0.35rem;
  color: #0f538c;
  background: #ddecfa;
  border: 1px solid #99c2e2;
  border-radius: 3px;
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.process-scope-badge.is-client {
  color: #8b2631;
  background: #ffe3e7;
  border-color: #e8a0a8;
}

.process-opening-section [hidden] {
  display: none !important;
}

@media (max-width: 1180px) and (min-width: 1101px) {
  .top-actions {
    grid-template-columns: 46px;
  }

  .account-button {
    width: 46px;
    grid-template-columns: 30px;
  }

  .account-copy,
  .account-button > svg {
    display: none;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .topbar {
    grid-template-columns: minmax(130px, 1fr) auto;
  }

  .top-actions {
    grid-template-columns: 46px;
  }

  .account-button {
    width: 46px;
    grid-template-columns: 30px;
  }

  .account-copy,
  .account-button > svg {
    display: none;
  }
}

@media (max-width: 1380px) {
  .dashboard-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  }

  .dashboard-kpi-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .dashboard-kpi {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .dashboard-kpi > strong {
    grid-column: 2;
  }
}

@media (max-width: 1080px) {
  :root { --sidebar-w: 300px; }

  .dashboard-hero-grid,
  .dashboard-grid,
  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .topbar {
    grid-template-columns: 38px minmax(120px, 1fr);
    gap: 0.55rem;
  }

  .top-actions {
    display: flex;
    min-width: 0;
    gap: 0.3rem;
  }

  .unit-scope-panel,
  .notification-panel,
  .account-panel {
    top: calc(var(--topbar-h) + 10px);
    left: 0.75rem;
    width: min(370px, calc(100vw - 1.5rem));
  }

  .account-panel {
    top: 140px;
  }

  .enterprise-workspace-switch {
    width: 112px;
    height: 34px;
  }

  .enterprise-workspace-option {
    height: 26px;
    padding: 0 4px;
    font-size: 8.6px;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-h: 60px;
  }

  .topbar {
    grid-template-columns: 38px minmax(76px, 1fr);
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
  }

  .top-actions {
    display: flex;
    min-width: 0;
    gap: 0.3rem;
  }

  .unit-scope-panel,
  .notification-panel,
  .account-panel {
    top: calc(var(--topbar-h) + 8px);
    left: 0.55rem;
    width: calc(100vw - 1.1rem);
    max-height: calc(100dvh - var(--topbar-h) - 16px);
  }

  .account-panel {
    top: 140px;
    max-height: calc(100dvh - 150px);
  }

  .unit-scope-list {
    max-height: calc(100dvh - var(--topbar-h) - 90px);
  }

  .enterprise-workspace-switch {
    width: 112px;
    height: 34px;
  }

  .enterprise-workspace-option {
    height: 26px;
    padding: 0 4px;
    font-size: 8.6px;
  }

  .dialog-flow-guide:not(.process-opening-flow) {
    grid-template-columns: 1fr;
  }

  .process-opening-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-dialog[data-process-scope="own_organization"] .process-opening-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-scope-selector,
  .process-scope-selector.is-single,
  .opening-audience-field label {
    grid-template-columns: 1fr;
  }

  .opening-audience-field label > small {
    grid-column: 1;
  }

  .opening-core-grid,
  .opening-narrative-grid,
  .opening-commercial-grid,
  .opening-commercial-layout,
  .opening-company-grid,
  .opening-source-content {
    grid-template-columns: 1fr;
  }

  .opening-requester-identity {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .opening-requester-identity em {
    grid-column: 2;
    white-space: normal;
  }

  .opening-cnpj-row,
  .opening-source-card {
    grid-template-columns: 1fr;
  }

  .opening-source-card {
    display: grid;
  }

  .opening-source-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .process-code-notice {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .app-dialog[data-variant="process-opening"] .process-opening-section > header {
    align-items: flex-start;
  }

  .process-opening-section > header > small {
    max-width: 42%;
  }
  .announcement-content {
    width: 82%;
  }

  .dashboard-kpi-stack,
  .import-source-selector {
    grid-template-columns: 1fr;
  }
}
