/* Componentes: styles.css */

:root {
  /* Marca */
  --brand-2: #f5821f;
  --accent: #fbeb7b;
  --accent-2: #ffd955;
  --coral: #dc5a4b;
  --grad-soft: linear-gradient(
    135deg,
    rgba(214, 65, 38, 0.08),
    rgba(245, 130, 31, 0.05)
  );

  /* Superfícies (Light, sóbrio) */
  --bg-tint: radial-gradient(
    1100px 540px at 100% -20%,
    rgba(245, 130, 31, 0.045),
    transparent 60%
  );
  --surface: #ffffff;

  /* Texto */

  /* Bordas / divisores */

  /* Estados */
  --ok: #1f9d6b;
  --ok-bg: #e4f6ee;
  --warn: #c0560f;
  --warn-bg: #fdeede;
  --danger: #d33a2c;
  --danger-bg: #fbe4e1;
  --info: #2563a8;
  --info-bg: #e6eef8;

  /* Sombras */
  --shadow-lg: 0 24px 60px -24px rgba(30, 27, 25, 0.28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
}
p {
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--brand);
}

/* ---------------------------------------------------------------- Branding */

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup > div:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-lockup strong {
  font-size: 19px;
  font-weight: 800;
}
.brand-lockup span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.logo-slot {
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Logo AMPLIADO */
.logo-slot-rect {
  width: 88px;
  height: 64px;
  padding: 8px;
}
.preview-logo {
  width: 160px;
  height: 110px;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#loginLogoFallback,
#sidebarLogoFallback,
#settingsLogoFallback {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------- Login */

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 0;
}

.login-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: clamp(32px, 6vw, 88px);
  justify-content: center;
  background: var(--surface);
}

.login-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login-copy h1 {
  font-size: 34px;
  font-weight: 800;
}
.login-copy p {
  color: var(--muted);
  max-width: 44ch;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  color: var(--ink-2);
}

input,
select,
textarea {
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: var(--ring);
}

.primary-button {
  font-family: inherit;
  font-weight: 700;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.15s,
    filter 0.15s;
}
.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 26px -10px rgba(214, 65, 38, 0.8);
}
.primary-button:active {
  transform: translateY(0);
}

.ghost-button {
  font-family: inherit;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 9px 15px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.ghost-button:hover {
  border-color: var(--brand-2);
  color: var(--brand);
  background: var(--brand-soft);
}

.danger-button {
  color: var(--danger);
}
.danger-button:hover {
  border-color: var(--danger);
  color: #fff;
  background: var(--danger);
}

.text-button {
  font-family: inherit;
  font-weight: 600;
  color: var(--brand);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.text-button:hover {
  text-decoration: underline;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.auth-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-method {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-family: inherit;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.auth-method:hover {
  border-color: var(--brand-2);
  background: var(--brand-soft);
}
.auth-method.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-method-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.auth-method span strong {
  display: block;
  font-size: 14px;
}
.auth-method span small {
  color: var(--muted);
  font-size: 12px;
}
.auth-method em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: var(--faint);
  font-weight: 600;
}

.form-message {
  color: var(--muted);
}

/* Login art */
.login-art {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  display: flex;
  align-items: flex-end;
  padding: 44px;
}
.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.25),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(251, 235, 123, 0.4),
      transparent 45%
    );
}
.login-telemetry {
  position: relative;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: #fff;
}
.login-telemetry span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.login-telemetry strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
}
.login-signal {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: pulse 4s ease-in-out infinite;
}
.signal-one {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -60px;
}
.signal-two {
  width: 180px;
  height: 180px;
  top: 40%;
  left: -40px;
  animation-delay: 1.2s;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

/* ----------------------------------------------------------- App shell */

.app-shell {
  min-height: 100vh;
}
.sidebar {
  left: 0;
  width: 78px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 18px 15px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition:
    width 0.18s ease,
    box-shadow 0.18s ease;
}
.sidebar:hover {
  width: 252px;
  box-shadow: var(--shadow-lg);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.sidebar-logo {
  flex-shrink: 0;
}
.brand-text {
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.sidebar:hover .brand-text {
  opacity: 1;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  font-family: inherit;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-icon {
  flex-shrink: 0;
}
.nav-label {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.sidebar:hover .nav-label {
  opacity: 1;
}
.nav-item:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.nav-item.active .nav-icon {
  color: var(--brand);
}

.sidebar-logout {
  color: var(--muted);
}
.sidebar-logout:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Sub-navegação de Parametrizações (faixa horizontal dentro da view) */
.param-nav-item {
  font-family: inherit;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.param-nav-item:hover {
  background: var(--surface-3);
  color: var(--ink-2);
}
.param-nav-item.active {
  color: var(--brand);
  background: var(--brand-soft);
}

/* Workspace */
.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.topbar h2 {
  margin-top: 2px;
}
.view-context {
  color: var(--muted);
  margin-top: 4px;
}
.topbar-actions {
  display: flex;
  gap: 10px;
}

/* ------------------------------------------------------------- Dashboard */

.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.kpi-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
  opacity: 0.85;
}
.metric-label {
  color: var(--muted);
}
.metric-card strong {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.metric-foot {
  color: var(--faint);
  position: relative;
}
.metric-card.attention::before {
  background: var(--danger);
}
.metric-card.attention strong {
  color: var(--brand);
}

/* Panels */
.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
}
.panel.wide {
  grid-column: 1 / -1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.panel-header p {
  color: var(--muted);
}

/* Folder tabs / segmented */
.folder-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  flex-wrap: wrap;
}
.folder-tab {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 7px 13px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.folder-tab:hover {
  color: var(--ink-2);
}
.folder-tab.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.cargo-tabs {
  margin-top: 8px;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.pill.ok {
  border-color: transparent;
}
.pill.warn {
  border-color: transparent;
}
.pill.danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: transparent;
}
.pill.info {
  border-color: transparent;
}

/* People list (aniversariantes) */
.people-list,
.attention-list,
.creci-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.people-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.12s,
    box-shadow 0.15s;
}
.people-row:hover {
  border-color: var(--brand-2);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.avatar.soft {
  background: var(--brand-soft);
  color: var(--brand);
}

.people-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.people-main strong {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.people-main span {
  font-size: 12px;
  color: var(--muted);
}

.bday-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 5px 8px;
  border-radius: 11px;
  background: var(--accent);
  color: #7a5b00;
}
.bday-badge .day {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}
.bday-badge .mon {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bday-badge.today {
  background: var(--grad);
  color: #fff;
}

/* Attention list */
.attention-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.12s,
    box-shadow 0.15s;
}
.attention-row:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--brand);
}
.attention-row .people-main {
  gap: 4px;
}
.reason-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

/* CRECI list */
.creci-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.12s,
    box-shadow 0.15s;
}
.creci-row:hover {
  border-color: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.creci-meta {
  font-size: 12px;
  color: var(--muted);
}
.creci-meta strong {
  color: var(--ink-2);
}
.creci-status {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.creci-date {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.creci-valid {
  font-size: 11px;
  color: var(--faint);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.vencido {
  background: var(--danger);
}
.status-dot.vencendo {
  background: var(--brand-2);
}
.status-dot.sem_data {
  background: var(--faint);
}
.status-dot.ok {
  background: var(--ok);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 26px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

/* Ops panel (details) */
.ops-panel {
  grid-column: 1 / -1;
}
.ops-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.ops-panel > summary::-webkit-details-marker {
  display: none;
}
.ops-panel > summary h3 {
  font-size: 16px;
}
.ops-panel > summary p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.ops-toggle-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}
.ops-panel[open] .ops-toggle-hint::after {
  content: " ▲";
}
.ops-panel:not([open]) .ops-toggle-hint::after {
  content: " ▼";
}
.ops-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-top: 18px;
}
.ops-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ops-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ops-col-head h4 {
  font-size: 14px;
  font-weight: 700;
}

.alert-list,
.run-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert-item,
.run-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.alert-item strong,
.run-item strong {
  display: block;
  font-size: 13px;
}
.alert-item span,
.run-item span {
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------ Generic view grid */

.view-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tables */
.table-wrap {
  background: var(--surface);
}
table {
  font-size: 13.5px;
}
thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
  padding: 13px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink-2);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--surface-2);
}
tbody td strong {
  color: var(--ink);
}

.table-actions {
  display: flex;
}
.panel-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.search-input {
  min-width: 240px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cards-grid.dense {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.cards-grid.projects {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.entity-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.12s,
    box-shadow 0.15s;
}
.entity-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.imob-card {
  flex-direction: row;
  align-items: flex-start;
}

.entity-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
}
.entity-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  flex: 1;
}
.entity-body h4 {
  font-size: 15px;
  font-weight: 700;
}
.entity-body p {
  font-size: 12.5px;
  color: var(--muted);
}
.entity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.entity-media {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  font-weight: 700;
}
.pdv-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.record-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.imob-responsavel {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.imob-responsavel select {
  flex: 1;
}

/* User list */
.user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.user-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.user-row-head strong {
  display: block;
  font-size: 15px;
}
.user-row-head span {
  font-size: 12.5px;
  color: var(--muted);
}
.user-row-status {
  display: flex;
  gap: 6px;
}

/* -------------------------------------------------------- Settings pages */

.settings-workspace {
  flex-direction: column;
}
.settings-pages {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.settings-page {
  display: flex;
  flex-direction: column;
}

.brand-settings-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.logo-preview-box {
  display: grid;
  place-items: center;
}
.logo-upload-panel {
  gap: 10px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.schedule-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-2);
}
.schedule-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}
.weekday-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.check-chip input {
  accent-color: var(--brand);
}
.schedule-options {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.check-line {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.check-line input {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}
.button-row {
  display: flex;
  gap: 10px;
}

.inline-form {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.compact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compact-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 0.7fr auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface-2);
}
.mini-check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}
.mini-check input {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}

.compact-table table {
  font-size: 13px;
}
.import-toggle {
  display: inline-flex;
  cursor: pointer;
}
.import-toggle input {
  accent-color: var(--brand);
  width: 17px;
  height: 17px;
}

/* ------------------------------------------------------------------ Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 25, 0.42);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 50;
}
.modal-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  gap: 20px;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-header h3 {
  font-weight: 800;
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.consultor-modal-grid,
.user-modal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.creci-modal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.modal-check {
  grid-template-columns: none;
}

.modal-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-section h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.creci-validation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.creci-validation-bar .vinfo {
  font-size: 12.5px;
  color: var(--muted);
}
.creci-validation-bar .vinfo strong {
  color: var(--ink);
}

/* Association picker */
.association-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.association-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-2);
}
.association-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.association-picker-head strong {
  font-size: 13px;
}
.association-picker-head span {
  font-size: 11px;
  color: var(--muted);
}
.association-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
}
.association-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
}
.association-option:hover {
  background: var(--surface-3);
}
.association-option input {
  accent-color: var(--brand);
}

/* Permissions */
.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.permission-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.permission-group h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.permission-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
}
.permission-check input {
  accent-color: var(--brand);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
}

/* ----------------------------------------------------- Topbar user chip */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.user-chip:hover {
  border-color: var(--brand-2);
  box-shadow: var(--shadow);
}
.user-chip-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.user-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.user-chip-text strong {
  font-size: 13px;
}
.user-chip-text span {
  font-size: 11px;
  color: var(--muted);
}

/* ----------------------------------------------------------- Avatars */
.avatar.xl {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 22px;
}

/* --------------------------------------------------- Calendário aniversários */
.cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cal-nav strong {
  font-size: 14px;
  min-width: 130px;
  text-align: center;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}
.icon-btn:hover {
  border-color: var(--brand-2);
  color: var(--brand);
  background: var(--brand-soft);
}

.calendar {
  width: 100%;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-head {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--faint);
  padding-bottom: 2px;
}
.cal-cell {
  position: relative;
  min-height: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px;
  font-family: inherit;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-2);
  cursor: default;
}
.cal-cell.empty {
  background: transparent;
}
.cal-cell .cal-day {
  font-size: 12px;
  font-weight: 600;
}
.cal-cell.has-bday {
  cursor: pointer;
  background: var(--brand-soft);
  border-color: rgba(214, 65, 38, 0.18);
}
.cal-cell.has-bday:hover {
  border-color: var(--brand-2);
}
.cal-cell.today {
  box-shadow: inset 0 0 0 2px var(--brand-2);
}
.cal-cell.selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.cal-cell.selected .cal-day {
  color: #fff;
}
.cal-dot {
  display: grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 9px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}
.cal-cell.selected .cal-dot {
  background: #fff;
  color: var(--brand);
}

.day-list-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* --------------------------------------------------- Big numbers / stats */
.stat-panel .stat-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.big-number {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}
.stat-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-sub {
  font-size: 13px;
  color: var(--muted);
}

.creci-stat-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.stat-cell strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-cell span {
  font-size: 12px;
  color: var(--muted);
}
.stat-cell.danger {
  border-left: 3px solid var(--danger);
}
.stat-cell.danger strong {
  color: var(--danger);
}
.stat-cell.warn {
  border-left: 3px solid var(--warn);
}
.stat-cell.warn strong {
  color: var(--warn);
}
.creci-hint {
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 4px 0;
}

/* --------------------------------------------------------- Minha conta */
.conta-hero .conta-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}
.conta-id {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.conta-id strong {
  font-size: 20px;
  font-weight: 800;
}
.conta-id span {
  font-size: 13px;
  color: var(--muted);
}
.conta-id .pill {
  align-self: flex-start;
  margin-top: 2px;
}

.conta-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.method-card.method-block {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.method-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.method-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.method-main strong {
  font-size: 14px;
}
.method-main span {
  font-size: 12.5px;
  color: var(--muted);
}
.method-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* TOTP setup */
.totp-setup {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.totp-qr {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}
.totp-setup-body {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.totp-secret {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 2px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  word-break: break-all;
}
.totp-activate-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.totp-activate-row input {
  max-width: 180px;
}

/* Passkeys */
.passkey-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.passkey-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

/* ----------------------------------------------------- Ops panel actions */
.ops-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ------------------------------------------ Consultores: seleção + paginação */
.col-check {
  width: 38px;
  text-align: center;
}
.col-check input,
.row-check {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 10px;
}

.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}
.bulk-bar > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}
.bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.pagination-info {
  font-size: 13px;
  color: var(--muted);
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pagination-page {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ghost-button:disabled:hover {
  border-color: var(--line-strong);
  color: var(--ink-2);
  background: var(--surface);
}

/* ------------------------------------------------- PDV modal: chips/horário */
.pdv-top-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pdv-address-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pdv-address-grid .cep-field {
  grid-column: span 2;
}
.pdv-address-grid .addr-logradouro {
  grid-column: span 2;
}
.cep-row {
  display: flex;
  gap: 8px;
}
.cep-row input {
  flex: 1;
  min-width: 0;
}
.cep-row .ghost-button {
  white-space: nowrap;
}

/* Chips multiselect */
.chips-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.chips-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.chips-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.chips-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: var(--surface);
}
.chips-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips-empty {
  font-size: 12px;
  color: var(--faint);
  padding: 2px 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 4px 6px 4px 11px;
}
.chip-x {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 14px;
  line-height: 1;
  border: none;
  border-radius: 50%;
  background: rgba(214, 65, 38, 0.15);
  color: var(--brand);
  cursor: pointer;
}
.chip-x:hover {
  background: var(--brand);
  color: #fff;
}
.chips-search {
  border: none;
  padding: 4px 2px;
  font-size: 13px;
}
.chips-search:focus {
  outline: none;
  box-shadow: none;
}
.chips-options {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 220px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 5;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chips-option {
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.chips-option:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.chips-none {
  font-size: 12px;
  color: var(--faint);
  padding: 8px 10px;
}

/* Horário de funcionamento */
.horario-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.horario-row {
  display: grid;
  grid-template-columns: 130px 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.horario-toggle {
  font-weight: 600;
}
.horario-sep {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.pdv-meta {
  margin-top: -2px;
}

/* ----------------------------------------- Toggle cards (roleta & incentivo) */
.full-span {
  grid-column: 1 / -1;
}
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.toggle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  font-weight: 500;
}
.toggle-card:hover {
  border-color: var(--brand-2);
}
.toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.18s;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s;
}
.toggle-card input:checked ~ .toggle-switch {
  background: var(--grad);
}
.toggle-card input:checked ~ .toggle-switch::after {
  transform: translateX(18px);
}
.toggle-card input:checked ~ .toggle-text strong {
  color: var(--brand);
}
.toggle-card input:focus-visible ~ .toggle-switch {
  box-shadow: var(--ring);
}
.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toggle-text strong {
  font-size: 13.5px;
}
.toggle-text small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ----------------------------------------- Roleta config (períodos no PDV) */
.roleta-periodos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.roleta-periodo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.roleta-periodo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.roleta-periodo-head select {
  max-width: 200px;
}
.roleta-periodo-times {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.roleta-periodo-times label {
  font-size: 12px;
}

/* ------------------------------------------------------------ Roleta (view) */
.roleta-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.roleta-context,
.checkin-content .roleta-context {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.inline-field {
  font-size: 12px;
}
.inline-field select,
.inline-field input {
  min-width: 150px;
}
.roleta-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.roleta-status-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.roleta-status-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.roleta-times {
  display: flex;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.roleta-times strong {
  color: var(--ink);
}
.roleta-actions {
  display: flex;
}
.roleta-add-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.roleta-add-row select {
  flex: 1;
}
.roleta-presenca-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roleta-presenca-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.roleta-presenca-row strong {
  flex: 1;
}
.roleta-filas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.roleta-fila-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.roleta-fila-list {
  display: flex;
  flex-direction: column;
}
.roleta-fila-row {
  display: flex;
  align-items: center;
  background: var(--surface);
}
.roleta-fila-row.proximo {
  border-color: var(--brand-2);
}
.roleta-fila-ordem {
  flex: 0 0 auto;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}
.roleta-fila-row.proximo .roleta-fila-ordem {
  background: var(--grad);
  color: #fff;
}
.roleta-fila-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.roleta-fila-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------------ Check-in (view) */
.checkin-panel {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
.checkin-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.checkin-step {
  text-align: center;
  padding: 8px 0;
}
.checkin-question {
  font-weight: 800;
}
.checkin-bigbtn {
  font-weight: 700;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.checkin-bigbtn:hover {
  border-color: var(--brand-2);
  background: var(--brand-soft);
}
button.primary-button.checkin-bigbtn {
  border: none;
}
.checkin-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.checkin-field.check-line {
  flex-direction: row;
  align-items: center;
}
.checkin-input {
  font-size: 15px;
  padding: 12px 14px;
}
.checkin-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.checkin-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.checkin-cortesia {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}
.checkin-proximo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--ok-bg);
}
.checkin-submit-bar .checkin-bigbtn {
  min-width: 260px;
}
.checkin-feedback {
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.checkin-feedback.ok {
  font-weight: 600;
}
.req {
  color: var(--danger);
}

/* ------------------------------------------------------------ Incentivo (view) */
.incentivo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.incentivo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.incentivo-card:hover {
  border-color: var(--brand-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.incentivo-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.incentivo-card-head strong {
  display: block;
}
.incentivo-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.incentivo-points div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.incentivo-points span {
  font-size: 11px;
  color: var(--muted);
}
.incentivo-points strong {
  font-size: 18px;
}
.incentivo-valor {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}
.incentivo-extrato-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.incentivo-config-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roleta-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-2, rgba(0, 0, 0, 0.04));
  font-size: 13px;
}
.roleta-clock .clock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.roleta-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.incentivo-sim {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.incentivo-sim-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.incentivo-sim-section {
  background: var(--surface-2, rgba(0, 0, 0, 0.03));
  border-radius: 10px;
  padding: 14px 16px;
}

.info-banner {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  margin-bottom: 12px;
}
.lista-card {
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.lista-perguntas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border, rgba(0, 0, 0, 0.12));
}
.preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 14px;
  padding-left: 20px;
}
.incentivo-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ Perguntas / motivos */
.pergunta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pergunta-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.motivos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.motivo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.motivo-row .motivo-input {
  flex: 1;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1100px) {
  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .sidebar:hover {
    width: auto;
    box-shadow: none;
  }
  .sidebar-brand {
    border-bottom: none;
    padding-bottom: 0;
    margin-right: auto;
  }
  .brand-text,
  .nav-label {
    opacity: 1;
  }
  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nav-item {
    width: auto;
  }
  .sidebar-logout {
    margin-top: 0;
  }
  .workspace {
    margin-left: 0;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .creci-row {
    grid-template-columns: auto 1fr auto;
  }
  .creci-stat-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .kpi-row {
    grid-template-columns: 1fr;
  }
  .brand-settings-grid {
    grid-template-columns: 1fr;
  }
  .modal-form-grid,
  .consultor-modal-grid,
  .user-modal-grid,
  .creci-modal-grid,
  .association-columns,
  .permission-grid,
  .pdv-top-grid,
  .pdv-address-grid,
  .chips-columns,
  .toggle-grid,
  .roleta-filas,
  .checkin-grid,
  .checkin-bigbuttons {
    grid-template-columns: 1fr;
  }
  .roleta-periodo-times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pdv-address-grid .addr-logradouro {
    grid-column: auto;
  }
  .inline-form,
  .compact-row {
    grid-template-columns: 1fr;
  }
  .horario-row {
    grid-template-columns: 110px 1fr auto 1fr;
  }
  .creci-row {
    grid-template-columns: auto 1fr;
  }
  .creci-status {
    display: none;
  }
}

/* CV import: readable stages and dependency cards, including narrow screens. */
.cv-node-list {
  display: grid;
  gap: 16px;
}
.cv-node {
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 16px;
}
.cv-node h4 {
  margin: 0 0 12px;
}
#cvIds,
#cvCadastroIds {
  display: block;
  width: 100%;
  min-height: 140px;
  margin: 12px 0;
}
.cv-node .modal-form-grid label {
  min-width: 0;
}
.cv-node select,
.cv-node input {
  width: 100%;
}
#modalBody li {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.cv-auto-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cv-auto-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
}
/* Regras e prévia lado a lado, com a simulação visível desde o topo. */
#incentivoConfigForm {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  align-items: start;
  gap: 24px;
}
#incentivoConfigForm > .modal-form-grid {
  grid-column: 1;
  grid-row: 1;
}
#incentivoConfigForm > .modal-section:not(.incentivo-sim-section) {
  grid-column: 1;
  grid-row: 2;
}
#incentivoConfigForm > .incentivo-sim-section {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 20px;
  margin: 0;
  padding: 26px;
  border: 1px solid #88cdb8;
  background: linear-gradient(140deg, #e9f9f2, #f3f7ff);
  box-shadow: 0 12px 32px #154e3c15;
  border-radius: 18px;
  color: #153e35;
}
.incentivo-sim-section h4 {
  font-size: 24px;
  margin: 10px 0;
}
.incentivo-sim-section .eyebrow {
  color: #176b55;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
}
.incentivo-sim-section select {
  margin: 8px 0 18px;
}
.incentivo-sim strong {
  color: #12664e;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.game-card {
  border: 1px solid var(--line, #dce5e2);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface, #fff);
}
.game-card h4 {
  margin: 0 0 16px;
}
.game-saldo {
  display: block;
  font-size: 36px;
  font-weight: 750;
  color: #186951;
  margin: 12px 0;
}
.game-saldo.negative,
.points-negative {
  color: #ae3346;
}
.game-rules {
  display: grid;
  gap: 16px;
}
.game-rule {
  border: 1px solid #dce5e2;
  border-radius: 14px;
  padding: 18px;
}
.game-rule h4 {
  margin: 0 0 14px;
}
.game-rule label {
  margin-top: 10px;
}
.game-rule.future {
  background: #f5f7fa;
}
.game-note {
  padding: 16px;
  border-left: 3px solid #209b76;
  background: #edf8f3;
  margin: 0 0 20px;
}
.eventos-folder {
  padding: 18px;
  border: 1px solid #cfded8;
  border-radius: 14px;
  margin-bottom: 20px;
  background: #f8fbf9;
}
.eventos-folder summary {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.eventos-folder .panel-tools {
  margin: 18px 0;
}
@media (max-width: 1000px) {
  #incentivoConfigForm {
    grid-template-columns: 1fr;
  }
  #incentivoConfigForm > .incentivo-sim-section {
    grid-column: 1;
    grid-row: 1;
    position: static;
  }
  #incentivoConfigForm > .modal-form-grid {
    grid-row: 2;
  }
  #incentivoConfigForm > .modal-section:not(.incentivo-sim-section) {
    grid-row: 3;
  }
}

.incentivo-sim .sim-money {
  font-size: 40px;
  line-height: 1.2;
  margin: 8px 0 14px;
  letter-spacing: -1px;
}

/* Consultant data stays readable while the refresh action remains visible. */
.modal-panel:has(#refreshModalConsultorButton) {
  overflow: hidden;
}
.modal-panel:has(#refreshModalConsultorButton) .modal-header,
.modal-panel:has(#refreshModalConsultorButton) .modal-actions {
  flex-shrink: 0;
}
.modal-panel:has(#refreshModalConsultorButton) .modal-body {
  min-height: 0;
  overflow: auto;
  padding: 2px;
}
.modal-panel:has(#refreshModalConsultorButton) .modal-actions {
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.participation-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.participation-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}
#participationChannels {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
#participationChannels legend {
  color: var(--muted);
  padding: 0 6px;
  font-size: 13px;
}
#participationChannels:disabled {
  opacity: 0.55;
}

.roleta-consultor-search {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.roleta-search-results {
  max-height: 320px;
  overflow: auto;
}
.roleta-search-heading,
.roleta-search-result {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  min-width: 540px;
  padding: 12px;
  text-align: left;
}
.roleta-search-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  position: sticky;
  top: 0;
}
.roleta-search-result {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 5px;
}
.roleta-search-result span {
  overflow-wrap: anywhere;
}
.roleta-search-result:hover,
.roleta-search-result[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft, #fff5ee);
}
.roleta-add-row:has(.roleta-consultor-search) {
  align-items: start;
}

#roletaRegularFields,
#roletaSpecialFields {
  display: grid;
  gap: 20px;
}
#roletaRegularFields.hidden,
#roletaSpecialFields.hidden {
  display: none;
}
.creation-regular .roleta-periodo-class-label {
  display: none;
}
.roleta-periodo-head > label {
  flex: 1;
  min-width: 0;
}

.modal-panel:has(#modalRoletaTipo) {
  overflow: hidden;
}
.modal-panel:has(#modalRoletaTipo) .modal-header,
.modal-panel:has(#modalRoletaTipo) .modal-actions {
  flex-shrink: 0;
}
.modal-panel:has(#modalRoletaTipo) .modal-body {
  min-height: 0;
  overflow: auto;
  padding: 2px;
  gap: 14px;
}

.modal-panel:has(#refreshModalConsultorButton) input[readonly],
.modal-panel:has(#refreshModalConsultorButton) select:disabled {
  background: #eeeeee;
  color: #666;
  border-color: #d5d5d5;
  opacity: 1;
  cursor: default;
}
.modal-panel:has(#refreshModalConsultorButton)
  .toggle-card:has(input:disabled) {
  background: #eeeeee;
  color: #666;
  cursor: default;
}
.modal-panel:has(#refreshModalConsultorButton)
  .toggle-card
  input:disabled
  + .toggle-switch {
  background: #aaa;
}
.consultor-cv-notice {
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  background: #fff6ec;
}
.consultor-alert {
  position: relative;
  cursor: help;
}
.consultor-alert-tip {
  display: none;
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 100%;
  min-width: 220px;
  max-width: 320px;
  white-space: normal;
  background: #272727;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-weight: 400;
  line-height: 1.5;
}
.consultor-alert:hover .consultor-alert-tip,
.consultor-alert:focus .consultor-alert-tip {
  display: block;
}
.consultor-photo-section {
  display: flex;
  align-items: center;
  gap: 16px;
}
.consultor-photo-section > div:last-child {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 8px;
}
.consultor-photo-frame {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
  display: grid;
  place-items: center;
  color: #777;
  font-size: 13px;
}
.consultor-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#consultorPhotoFile {
  font-size: 12px;
  width: 100%;
}
.modal-panel:has(#saveParticipation) {
  overflow: hidden;
}
.modal-panel:has(#saveParticipation) .modal-header,
.modal-panel:has(#saveParticipation) .modal-actions {
  flex-shrink: 0;
}
.modal-panel:has(#saveParticipation) .modal-body {
  min-height: 0;
  overflow: auto;
  padding: 2px;
}

/* Configuration versions and auditable point statements */
.config-editor {
  display: grid;
  gap: 20px;
}
.config-log-tabs {
  margin-bottom: 16px;
}
.change-reason-dialog,
.config-history-dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
  width: min(620px, 92vw);
  max-height: 85vh;
  overflow: auto;
}
.config-history-dialog {
  width: min(1050px, 94vw);
}
dialog::backdrop {
  background: #0006;
  backdrop-filter: blur(3px);
}
.change-reason-dialog textarea {
  width: 100%;
}
.history-filters {
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.history-entry {
  padding: 18px;
  margin: 14px 0;
  border: 1px solid var(--line);
}
.history-entry pre,
.point-details pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.5 monospace;
  max-height: 350px;
  overflow: auto;
}
.history-entry td {
  vertical-align: top;
}
.game-rules {
  grid-template-columns: 1fr;
}
.game-role-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.game-role-points input {
  width: 100%;
}
.point-details {
  margin-top: 10px;
  font-size: 13px;
}
.point-details dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
}
.point-details dt {
  color: var(--muted);
}
.point-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .game-role-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .point-details dl {
    grid-template-columns: 1fr;
  }
}

.modal-panel:has(.point-details),
.modal-panel:has(#modalConfigLog) {
  overflow: hidden;
}
.modal-panel:has(.point-details) .modal-body,
.modal-panel:has(#modalConfigLog) .modal-body {
  min-height: 0;
  overflow: auto;
}
.modal-panel:has(.point-details) .modal-header,
.modal-panel:has(#modalConfigLog) .modal-header,
.modal-panel:has(#modalConfigLog) .modal-actions {
  flex-shrink: 0;
}

.modal-panel:has(.point-details) {
  width: min(1100px, 94vw);
}

/* Componentes: review.css */
:root {
  --brand: #b9442d;
  --brand-strong: #95331f;
  --brand-soft: #fcf0eb;
  --grad: linear-gradient(120deg, #b9442d, #b9442d);
  --bg: #f5f6f8;
  --ring: 0 0 0 3px #b9442d26;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #216ca8;
  outline-offset: 3px;
}
button {
  min-height: 40px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary-button:hover {
  transform: none;
}
.hidden {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100000;
  background: white;
  padding: 14px;
}
.skip-link:focus {
  top: 10px;
}
.sidebar,
.sidebar:hover {
  width: 234px;
  box-shadow: none;
  border: 0;
  padding: 26px 16px 36px;
  overflow: auto;
}
.sidebar .brand-text,
.sidebar .nav-label {
  opacity: 1;
}
.sidebar-brand {
  border-color: #ffffff20;
  padding: 0 8px 26px;
  gap: 10px;
}
.sidebar .brand-text strong {
  color: white;
}
.sidebar .brand-text span {
  color: #9eafbd;
}
.sidebar-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 0;
}
.sidebar .nav-item {
  color: #c3cfda;
}
.sidebar .nav-item:hover {
  background: #ffffff0d;
  color: #fff;
}
.sidebar .nav-item.active .nav-icon {
  color: inherit;
}
.nav-icon {
  width: 19px;
  height: 19px;
}
.review-nav-heading {
  font-weight: 700;
  color: #8299ab;
}
.sidebar-logout {
  border-top: 1px solid #ffffff20 !important;
  padding-top: 18px !important;
}
.review-topline {
  align-items: center;
  gap: 10px;
  margin: 0 -34px;
  padding: 8px 34px;
  background: #fff9e9;
  border-bottom: 1px solid #ecdfb9;
  color: #78603a;
  font-size: 11px;
}
.review-topline a {
  margin-left: auto;
  color: #725129;
  font-weight: 600;
}
.review-pill {
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 800;
  border: 1px solid #d7c29b;
  border-radius: 4px;
  padding: 3px 5px;
  white-space: nowrap;
}
.review-utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.review-search-button {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font: inherit;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.review-search-button kbd {
  font: 11px inherit;
  background: #f4f5f7;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 5px;
}
.topbar .eyebrow {
  color: #667085;
}
.view-context {
  font-size: 13px;
  line-height: 1.6;
  max-width: 680px;
}
.topbar-actions {
  font-size: 12px;
}
.panel-header {
  align-items: center;
}
.panel-header p {
  max-width: 760px;
}
.wide {
  grid-column: 1/-1;
}
.review-hero {
  background: #e9eff1;
  border: 1px solid #d9e3e7;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.review-hero h3 {
  font-size: 25px;
  margin: 10px 0;
  letter-spacing: -0.7px;
}
.review-hero p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.7;
  color: #4f6473;
  max-width: 450px;
}
.review-hero .eyebrow {
  color: #476573;
}
.review-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 190px;
}
.review-quick-actions .ghost-button {
  background: white;
}
.metric-card::before {
  display: none;
}
.metric-card strong {
  font-size: 30px;
  font-weight: 600;
}
.metric-foot {
  font-size: 11px;
}
.dashboard .kpi-row {
  order: 1;
}
.primary-button {
  box-shadow: none;
  border-radius: 7px;
  font-size: 13px;
}
.ghost-button {
  border-radius: 7px;
  font-size: 13px;
}
.folder-tab {
  min-height: 42px;
}
.review-section-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid #d5dbe3;
  margin-top: 0;
}
.review-section-nav > button {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 12px 1px;
  font: 600 14px var(--font);
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.review-section-nav > button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.review-section-nav .review-settings-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.roleta-context {
  gap: 12px;
}
.roleta-context select {
  max-width: 260px;
}
.roleta-content {
  min-width: 0;
}
th {
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
input,
select,
textarea {
  border-radius: 7px;
  min-height: 42px;
  font-size: 13px;
}
input[type="checkbox"],
input[type="radio"] {
  min-height: auto;
}
.settings-workspace {
  display: grid;
  align-items: start;
}
.settings-subnav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  position: sticky;
  top: 20px;
  box-shadow: none;
}
.param-nav-item {
  text-align: left;
  min-height: 40px;
}
.settings-pages {
  min-width: 0;
}
.settings-page {
  gap: 20px;
}
.settings-page .panel {
  padding: 22px;
}
.modal-header {
  border-bottom: 1px solid var(--line);
}
.modal-actions {
  border-top: 1px solid var(--line);
}
.history-filters {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  align-items: end;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.history-filters input,
.history-filters select {
  width: 100%;
  min-width: 0;
}
.history-range {
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.6;
}
.history-range strong {
  color: var(--ink);
}
.history-table td:first-child {
  min-width: 155px;
}
.history-table td:nth-child(2) {
  min-width: 180px;
}
.history-table .primary-cell {
  font-weight: 600;
  color: var(--ink);
}
.history-type {
  display: inline-flex;
  padding: 4px 7px;
  background: #edf2f7;
  color: #475970;
  font-size: 10px;
  font-weight: 600;
  border-radius: 5px;
  white-space: nowrap;
}
.history-type.special {
  background: #f2edfc;
  color: #7251a7;
}
.history-positive {
  color: #15775b;
  font-variant-numeric: tabular-nums;
}
.history-negative {
  color: #b42318;
  font-variant-numeric: tabular-nums;
}
.history-open {
  background: none;
  border: 1px solid #d6dfe8;
  border-radius: 6px;
  padding: 7px 11px;
  color: #36536b;
  font: 600 11px var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.history-open:hover {
  background: #edf3f7;
}
.history-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.history-pager > div {
  display: flex;
  gap: 8px;
}
.history-empty {
  padding: 50px 28px;
  text-align: center;
  background: #fafbfc;
  border-radius: 8px;
  line-height: 1.8;
  color: var(--muted);
}
.history-empty h4 {
  font-size: 18px;
}
.history-error {
  padding: 20px;
  background: #fff0ed;
  color: #a43120;
  border-radius: 8px;
  line-height: 1.7;
}
.history-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: start;
}
.history-detail-header h3 {
  margin: 12px 0 8px;
  font-size: 23px;
}
.history-detail-header p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.history-back {
  background: none;
  border: 0;
  color: #46627a;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}
.history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.history-summary > div {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.history-summary span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 9px;
}
.history-summary strong {
  font-size: 21px;
  font-weight: 600;
}
.history-detail-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.history-detail-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font: 600 12px var(--font);
  padding: 12px;
  cursor: pointer;
}
.history-detail-tabs .active {
  border-color: var(--brand);
  color: var(--brand);
}
.history-note {
  padding: 13px 16px;
  border-left: 3px solid #adc5d7;
  background: #f3f7fa;
  font-size: 12px;
  line-height: 1.7;
  color: #486174;
  margin-bottom: 16px;
}
.history-log {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.history-log time {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.history-log h4 {
  font-size: 13px;
  margin-bottom: 6px;
}
.history-log p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.history-log details {
  margin-top: 10px;
}
.history-log summary,
.history-point-details summary {
  cursor: pointer;
  color: #365a77;
  font-size: 12px;
  padding: 8px 0;
  min-height: 36px;
}
.history-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 400px;
  overflow: auto;
  background: #f5f7fa;
  padding: 16px;
  border-radius: 6px;
  font-size: 11px;
  color: #344054;
}
.history-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0;
}
.history-kv > div {
  background: white;
  padding: 13px;
}
.history-kv dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.history-kv dd {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.history-point-details {
  margin-top: 10px;
}
.history-point-details > div {
  max-width: 650px;
  min-width: 260px;
}
.history-point-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
}
.history-point-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}
.history-point-head strong {
  font-size: 18px;
}
.history-point-head h4 {
  font-size: 13px;
}
.history-point-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 5px;
}
.review-dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  width: min(620px, 90vw);
  box-shadow: 0 20px 100px #132b3c44;
}
.review-dialog::backdrop {
  background: #172b3b70;
}
.review-dialog input {
  width: 100%;
  margin: 18px 0;
}
.review-command-results {
  display: grid;
  gap: 6px;
  max-height: 55vh;
  overflow: auto;
}
.review-command-results button {
  display: flex;
  justify-content: space-between;
  text-align: left;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  cursor: pointer;
  color: var(--ink);
}
.review-command-results small {
  color: var(--muted);
}
#reviewMenu {
  display: none;
}
.review-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (min-width: 1600px) {
  .workspace {
    padding-left: 52px;
    padding-right: 52px;
  }
  .review-topline {
    margin-left: -52px;
    margin-right: -52px;
    padding-left: 52px;
    padding-right: 52px;
  }
}
@media (max-width: 1100px) {
  .sidebar,
  .sidebar:hover {
    width: 208px;
  }
  .workspace {
    margin-left: 208px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .review-topline {
    margin-left: -22px;
    margin-right: -22px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .history-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .review-hero {
    align-items: flex-start;
  }
  .history-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-workspace {
    grid-template-columns: 165px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar,
  .sidebar:hover {
    width: 234px;
    transform: translateX(-100%);
    z-index: 1000;
    transition: transform 0.2s;
  }
  .sidebar.review-mobile-open {
    transform: translateX(0);
    box-shadow: 30px 0 100px #172b3b50;
  }
  .workspace {
    margin-left: 0;
    padding: 0 16px 70px;
  }
  .review-topline {
    margin: 0 -16px;
    padding: 8px 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .review-topline > span:not(.review-pill) {
    display: none;
  }
  #reviewMenu {
    display: block;
    min-height: 32px;
    padding: 4px 8px;
  }
  .review-topline a {
    font-size: 10px;
  }
  .review-utility > span {
    display: none;
  }
  .review-search-button {
    width: 100%;
    justify-content: space-between;
  }
  .review-utility {
    margin-top: -8px;
  }
  .topbar h2 {
    font-size: 26px;
  }
  .topbar-actions {
    display: none;
  }
  .review-hero {
    padding: 22px;
    flex-direction: column;
  }
  .review-quick-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .review-hero h3 {
    font-size: 22px;
  }
  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel {
    padding: 16px;
  }
  .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }
  .history-search {
    grid-column: 1/-1;
  }
  .history-pager {
    align-items: flex-start;
    flex-direction: column;
  }
  .history-detail-tabs {
    gap: 0;
    overflow: auto;
  }
  .history-detail-tabs button {
    padding: 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .history-log {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .history-kv {
    grid-template-columns: 1fr;
  }
  .history-summary {
    gap: 8px;
  }
  .history-summary > div {
    padding: 12px;
  }
  .history-summary strong {
    font-size: 18px;
  }
  .review-section-nav {
    gap: 20px;
  }
  .review-section-nav .review-settings-link {
    font-size: 10px;
    max-width: 100px;
  }
  .settings-workspace {
    display: flex;
    flex-direction: column;
  }
  .settings-subnav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .settings-pages {
    width: 100%;
  }
  .roleta-context {
    width: 100%;
    flex-wrap: wrap;
  }
  .roleta-context label {
    flex: 1;
    min-width: 130px;
  }
  .roleta-context select {
    max-width: none;
    width: 100%;
  }
  .modal-panel {
    max-width: 100%;
    width: 100%;
    max-height: 94vh;
  }
  .modal-body {
    padding: 16px;
  }
  .history-point-head {
    flex-wrap: wrap;
  }
  .history-point-details > div {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep primary navigation readable at laptop heights; put the first records above the fold. */
.sidebar-brand,
.sidebar .nav-list,
.sidebar-logout {
  flex-shrink: 0;
}
.sidebar {
  gap: 10px;
}
.sidebar-brand {
  padding-bottom: 18px;
}
.review-nav-heading {
  padding-top: 15px;
}
.review-utility {
  padding-bottom: 10px;
}
.review-topline {
  min-height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.history-list-panel .panel-header {
  margin-bottom: 0;
}
.history-list-panel .panel-header .eyebrow {
  font-size: 9px;
  margin-bottom: 4px;
}
.history-list-panel {
  gap: 14px;
  padding: 20px;
}
.history-filters {
  gap: 10px;
  padding: 14px;
}
.history-filters label {
  gap: 5px;
}
.history-filters input,
.history-filters select {
  min-height: 38px;
  padding: 8px 10px;
}
.history-filters button {
  min-height: 38px;
}
.history-range {
  font-size: 10px;
}
.history-list-panel .panel-header h3 {
  font-size: 18px;
}
.app-shell {
  display: block;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  height: 100dvh;
}
@media (max-width: 760px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
  }
  .sidebar .nav-list {
    display: flex;
    flex-direction: column;
  }
  .sidebar .brand-text,
  .sidebar .nav-label {
    display: initial;
  }
  .sidebar-brand {
    display: flex;
  }
  .sidebar .nav-item {
    width: 100%;
  }
  .workspace {
    padding-top: 0;
  }
}
.sidebar .nav-list {
  width: 100%;
  align-self: stretch;
}
#reviewNavClose {
  display: none;
}
@media (max-width: 760px) {
  #reviewNavClose {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: 0;
    color: white;
    font-size: 24px;
    min-height: 36px;
    width: 36px;
    cursor: pointer;
  }
  .sidebar-brand {
    padding-right: 20px;
  }
}
.history-filter-toggle {
  display: none;
}
@media (max-width: 760px) {
  .history-filter-toggle {
    display: block;
    align-self: flex-start;
  }
  .history-filters:not(.mobile-filters-open) {
    display: none;
  }
  .history-list-panel .panel-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }
  .history-list-panel .panel-header p {
    display: none;
  }
  .history-list-panel .panel-header .eyebrow {
    display: block;
  }
  .history-list-panel .panel-header .ghost-button {
    font-size: 10px;
    padding: 8px;
  }
  .history-list-panel .panel-header h3 {
    font-size: 17px;
  }
}

/* Componentes: visit-history.css */
.visit-tabs {
  grid-column: 1 / -1;
  margin: 0;
}
.visit-history-panel {
  min-width: 0;
}
.visit-filters {
  display: grid;
  align-items: end;
  border-bottom: 1px solid #e3e8ee;
}
.visit-filters label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.visit-filters input,
.visit-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cdd6e1;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
}
.visit-table table {
  width: 100%;
}
.visit-table td {
  vertical-align: middle;
}
.visit-table small {
  display: block;
  color: #697586;
  margin-top: 3px;
}
.visit-table .ghost-button {
  white-space: nowrap;
}
.visit-paging {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 18px;
  font-size: 13px;
  color: #58677a;
}
.visit-detail-fields {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px 18px;
  margin: 24px 0;
  font-size: 14px;
}
.visit-detail-fields dt {
  color: #617086;
}
.visit-detail-fields dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.visit-identifiers {
  border-top: 1px solid #e3e8ee;
  padding-top: 16px;
  font-size: 12px;
  color: #617086;
  overflow-wrap: anywhere;
}
.request-failure {
  border: 1px solid #e5bdb2;
  background: #fff5f1;
  border-radius: 12px;
  padding: 24px;
  color: #7b3527;
}
.request-failure strong {
  display: block;
  font-size: 16px;
}
.request-failure p {
  margin: 8px 0;
}
.request-failure button {
  margin-top: 12px;
  background: white;
}
.visit-history-panel button:focus-visible,
.visit-tabs button:focus-visible,
.visit-history-panel input:focus-visible,
.visit-history-panel select:focus-visible {
  outline: 3px solid #4885d1;
  outline-offset: 3px;
}
@media (max-width: 850px) {
  .visit-filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .visit-filters {
    grid-template-columns: 1fr;
  }
  .visit-filters .visit-search {
    grid-column: auto;
  }
  .visit-detail-fields {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .visit-detail-fields dd {
    margin-bottom: 12px;
  }
  .visit-paging {
    gap: 12px;
    justify-content: center;
  }
}

/* Componentes: journey-improvements.css */
/* Local frontend review: additive journey controls, scoped to avoid changing business screens. */
.journey-week-picker {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  padding: 14px 0;
}
.journey-week-picker label,
.journey-filters label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted, #53647b);
}
.journey-week-picker input,
.journey-filters input,
.journey-filters select {
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line, #dbe3ec);
  border-radius: 9px;
  background: var(--surface, #fff);
  color: var(--text, #192b43);
  font: inherit;
  font-size: 13px;
}
.journey-help {
  color: var(--muted, #64748b);
  font-size: 12px;
  padding: 12px 0;
}
.journey-filters {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.8fr) repeat(2, minmax(130px, 1fr))
    repeat(2, minmax(115px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dbe3ec);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0 18px;
}
.journey-filters.hidden {
  display: none;
}
.journey-filter-count {
  grid-column: 1/-1;
  color: var(--muted, #64748b);
  font-size: 12px;
  margin: 0;
  padding-top: 4px;
}
#incentivoPlanosContent [hidden] {
  display: none !important;
}
.journey-eligibility {
  background: #eff7f5;
  border: 1px solid #c5e0d9;
  border-radius: 14px;
  padding: 20px;
  margin: 0 0 22px;
}
.journey-eligibility h4 {
  margin: 0 0 10px;
  color: #16594f;
}
.journey-shortcuts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #c5e0d9;
}
.journey-ledger-summary {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line, #dbe3ec);
  border-radius: 14px;
  background: #f3f6fb;
}
.journey-ledger-summary span {
  font-size: 12px;
  color: #607089;
}
.journey-ledger-summary strong {
  display: block;
  font-size: 25px;
  margin-top: 4px;
  color: #17354f;
}
.journey-ledger-summary p {
  font-size: 13px;
  color: #607089;
  max-width: 350px;
}
.journey-ledger-filters {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}
.journey-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  font-size: 13px;
  color: var(--muted, #64748b);
}
.journey-positive {
  color: #087260;
  font-weight: 650;
  white-space: nowrap;
}
.journey-warning {
  background: #fff4d8;
  padding: 12px;
  border-radius: 10px;
  color: #775418;
  font-size: 13px;
}
#journeyLedgerRows td:first-child {
  min-width: 140px;
}
#journeyLedgerRows .point-details {
  margin: 10px 0;
}
@media (max-width: 1100px) {
  .journey-filters {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}
@media (max-width: 650px) {
  .journey-filters,
  .journey-ledger-filters {
    grid-template-columns: 1fr 1fr;
  }
  .journey-filters label:first-child {
    grid-column: 1/-1;
  }
  .journey-ledger-summary {
    display: block;
  }
  .journey-week-picker button {
    flex: 1;
  }
  .journey-week-picker label {
    flex-basis: 100%;
  }
}

/* Componentes: workspace-v2.css */
.shared-context {
  display: flex;
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.context-label {
  align-self: center;
}
.context-label strong {
  display: block;
}
.context-label small {
  color: var(--muted);
  display: block;
}
.shared-context p {
  flex-basis: 100%;
  color: var(--muted);
  margin-top: -5px;
}
.context-dates {
  display: flex;
  gap: 10px;
  align-items: end;
}
.context-dates label {
  min-width: 125px;
}
.context-replaced {
  display: none !important;
}
.dashboard #roletaResumoPanel {
  order: 3;
  grid-column: auto;
  align-self: stretch;
}
.dashboard .creci-panel {
  order: 4;
  grid-column: auto;
  align-self: stretch;
}
.dashboard .stat-panel {
  order: 5;
  grid-column: auto;
  align-self: stretch;
}
.dashboard .people-panel {
  order: 6;
  grid-column: auto;
  align-self: stretch;
}
.dashboard details {
  order: 7;
  grid-column: 1/-1;
}
.dashboard .operational-kpis {
  order: 2;
}
.dashboard .kpi-row:not(.operational-kpis) {
  order: 1;
}
.dashboard .review-hero {
  order: 0;
}
.operational-metric {
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.operational-metric:hover {
  border-color: #aebecb;
}
.operational-metric strong {
  font-size: 30px;
}
.operational-metric .metric-foot {
  font-size: 11px;
  line-height: 1.4;
}
#roletaResumoKpis {
  display: flex;
  gap: 32px;
  order: 0;
}
#roletaResumoKpis > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
#roletaResumoKpis span {
  font-size: 11px;
  color: var(--muted);
}
.operational-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.operational-row strong {
  font-size: 12px;
}
.operational-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.operational-row > span {
  font-size: 11px;
  white-space: nowrap;
}
.dashboard .panel-header {
  align-items: flex-start;
}
.dashboard .cal-nav {
  gap: 4px;
}
.dashboard #bdayMonthLabel {
  font-size: 12px;
}
.dashboard .creci-panel .panel-header {
  flex-wrap: wrap;
}
.dashboard .creci-panel .kpi-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard .creci-panel .metric-card {
  padding: 12px;
}
.dashboard .creci-panel .metric-card strong {
  font-size: 24px;
}
.dashboard .creci-panel .metric-card .metric-label {
  font-size: 9px;
}
.dashboard .creci-panel .big-number {
  font-size: 32px;
}
.checkin-panel {
  min-width: 0;
}
.checkin-panel > .panel-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.checkin-panel .roleta-context {
  margin-left: auto;
}
.checkin-panel .roleta-context label {
  min-width: 210px;
}
.checkin-panel .roleta-context button {
  align-self: end;
}
.checkin-welcome {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 38px 24px;
  background: #f7f9fc;
  border: 1px dashed #c9d4e0;
  border-radius: 10px;
}
.checkin-step-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e9eff4;
  border-radius: 50%;
  font-weight: 700;
  color: #49687f;
}
.checkin-welcome h3 {
  font-size: 19px;
  margin: 2px 0 10px;
}
.checkin-welcome p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 620px;
  color: var(--muted);
}
#checkinView {
  grid-template-columns: 1fr;
}
#checkinKpis {
  order: 0;
}
.visit-tabs {
  order: 1;
}
.checkin-panel,
.visit-history-panel {
  order: 2;
}
.checkin-content .checkin-question {
  font-size: 18px;
  text-transform: none;
  letter-spacing: -0.2px;
}
.checkin-content .checkin-step {
  padding: 24px;
  background: #f8fafc;
  border-radius: 10px;
}
.checkin-bigbuttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.checkin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.checkin-content .modal-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.checkin-content .modal-section h4 {
  margin-bottom: 18px;
}
.checkin-submit-bar .checkin-bigbtn {
  min-height: 44px;
  padding: 13px 28px;
}
.visit-filters {
  grid-template-columns: 1fr 1fr 2fr auto auto;
  gap: 12px;
  padding: 4px 0 18px;
}
.visit-filters .visit-search {
  grid-column: auto;
}
.imob-directory {
  display: block;
  min-width: 0;
}
.imob-directory .imob-card {
  display: table-row;
  grid-template-columns: none;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.imob-directory .imob-assignee {
  display: flex;
  gap: 8px;
  min-width: 220px;
}
.imob-directory .imob-assignee select {
  min-width: 150px;
  max-width: 260px;
}
.imob-directory .table-actions {
  flex-wrap: nowrap;
}
.imob-directory .form-message {
  margin-bottom: 15px;
}
.hierarchy-directory {
  display: block;
  min-width: 0;
}
.hierarchy-summary {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 12px;
  margin: 4px 0 20px;
}
.hierarchy-summary > div {
  padding: 18px;
  background: #f6f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hierarchy-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 8px;
}
.hierarchy-summary strong {
  font-size: 27px;
  font-weight: 600;
}
.hierarchy-summary strong small {
  font-size: 11px;
  font-weight: 400;
}
.hierarchy-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  font-size: 11px;
  color: var(--muted);
}
.hierarchy-person {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: calc(var(--depth) * 22px);
  min-width: 240px;
}
.hierarchy-person strong {
  font-size: 12px;
}
.hierarchy-person small {
  font-size: 10px;
  max-width: 350px;
}
.hierarchy-toggle {
  border: 1px solid #c3d0db;
  background: white;
  color: #36536b;
  border-radius: 6px;
  min-height: 30px;
  width: 30px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.hierarchy-leaf {
  width: 30px;
  text-align: center;
  color: #a9bac8;
  font-size: 22px;
  flex-shrink: 0;
}
.hierarchy-table td {
  vertical-align: middle;
}
.hierarchy-table .hierarchy-level-0 td {
  background: #f3f7fa;
  border-top: 1px solid #dbe4ec;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}
.hierarchy-table .hierarchy-level-1 td {
  background: #fafcfd;
}
.hierarchy-points {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.hierarchy-table th:nth-child(n + 3) {
  text-align: right;
}
.hierarchy-table th:last-child {
  text-align: left;
}
.hierarchy-table .ghost-button {
  font-size: 11px;
  min-height: 32px;
  padding: 7px 12px;
}
@media (max-width: 1100px) {
  .shared-context {
    gap: 12px;
  }
  .context-label {
    flex-basis: 100%;
  }
  .hierarchy-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard .panel {
    padding: 18px;
  }
  .dashboard .panel-header h3 {
    font-size: 16px;
  }
  .dashboard .kpi-row {
    gap: 10px;
  }
  .operational-metric {
    padding: 16px;
  }
  .checkin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .visit-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .shared-context {
    padding: 14px;
    gap: 12px;
  }
  .shared-context label {
    min-width: 0;
    flex: 1;
  }
  .shared-context select {
    max-width: none;
    width: 100%;
  }
  .context-label small {
    display: none;
  }
  .context-dates {
    width: 100%;
    flex-wrap: wrap;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard #roletaResumoPanel,
  .dashboard .creci-panel,
  .dashboard .stat-panel,
  .dashboard .people-panel {
    grid-column: 1;
  }
  .operational-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .operational-metric strong {
    font-size: 24px;
  }
  .checkin-panel .roleta-context {
    margin: 0;
  }
  .checkin-panel .roleta-context label {
    min-width: 150px;
  }
  .checkin-grid {
    grid-template-columns: 1fr;
  }
  .checkin-bigbuttons {
    grid-template-columns: 1fr;
  }
  .checkin-welcome {
    padding: 24px 16px;
  }
  .visit-filters {
    grid-template-columns: 1fr 1fr;
  }
  .visit-filters .visit-search {
    grid-column: 1/-1;
  }
  .hierarchy-summary strong {
    font-size: 23px;
  }
  .hierarchy-summary > div {
    padding: 13px;
  }
  .hierarchy-person {
    padding-left: calc(var(--depth) * 12px);
  }
  .hierarchy-tools {
    align-items: flex-start;
  }
  .context-label {
    flex-basis: 100%;
  }
}

/* Componentes: incentive-workflow.css */
#incentiveWorkflow {
  padding: 24px;
  min-width: 0;
}
.iw-header,
.iw-section-header,
.iw-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.iw-header h3 {
  margin: 3px 0 7px;
}
.iw-header p,
.iw-section-header p,
.iw-detail-title p {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 5px 0;
  line-height: 1.6;
}
.iw-eyebrow {
  font-size: 10px !important;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #647b90 !important;
}
.iw-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line, #dfe6ed);
  overflow-x: auto;
}
.iw-tabs button {
  border: 0;
  background: transparent;
  color: #6b7c8e;
  padding: 13px 15px;
  font: inherit;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.iw-tabs button[aria-selected="true"] {
  border-bottom-color: #176e64;
  font-weight: 750;
}
.iw-context-note {
  font-size: 12px;
  color: #60788f;
  padding: 14px 0;
}
.iw-section-header {
  margin: 10px 0 18px;
}
.iw-section-header h4,
.iw-detail-title h4 {
  margin: 0;
  font-size: 18px;
}
.iw-section-header p {
  max-width: 680px;
}
.iw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.iw-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #718094;
  background: #f6f8fb;
  white-space: nowrap;
}
.iw-table td,
.iw-table th {
  padding: 13px 12px;
  vertical-align: top;
  border-bottom: 1px solid #e7edf3;
}
.iw-table td small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #738298;
  line-height: 1.45;
}
.iw-table td:first-child {
  min-width: 150px;
}
.iw-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 650;
}
.iw-actions {
  min-width: 130px;
}
.iw-actions button {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  font-size: 11px;
  padding: 7px 9px;
}
.iw-pill {
  display: inline-block;
  border-radius: 7px;
  background: #eff3f8;
  color: #53657a;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 650;
}
.iw-pill.ok {
  background: #e1f2eb;
  color: #1c705c;
}
.iw-pill.warn {
  background: #fff1d7;
  color: #8d671d;
}
.iw-pill.muted {
  background: #f0f1f3;
  color: #78818c;
}
.iw-footnote {
  font-size: 11px;
  color: #7a8798;
  line-height: 1.6;
}
.iw-review-section {
  margin-top: 32px;
  border-top: 1px solid #e0e6ed;
  padding-top: 20px;
}
.iw-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 4px 0 24px;
}
.iw-metrics span {
  display: block;
  font-size: 11px;
  color: #698096;
}
.iw-metrics strong {
  display: block;
  line-height: 1.5;
  color: #20394e;
}
.iw-metrics small {
  color: #507366;
  font-size: 12px;
}
.iw-filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.iw-filters label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: #63788d;
}
.iw-filters label:first-child {
  flex: 1;
  min-width: 220px;
}
.iw-filters input,
.iw-filters select {
  height: 38px;
  padding: 8px 10px;
  border: 1px solid #dce4eb;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: #20384e;
}
.iw-filters > span {
  flex-basis: 100%;
  font-size: 11px;
  color: #708198;
}
.iw-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
  color: #738397;
}
.iw-empty {
  padding: 45px 20px;
  text-align: center;
  color: #6c7e91;
  font-size: 14px;
}
.iw-empty strong {
  display: block;
  color: #294258;
}
.iw-notice {
  padding: 12px 14px;
  background: #fff6df;
  border: 1px solid #f0e3be;
  border-radius: 9px;
  color: #806727;
  font-size: 12px;
}
.iw-detail-title {
  margin: 20px 0;
}
.iw-detail-grid {
  display: grid;
  margin-top: 24px;
}
.iw-detail-grid > section {
  border: 1px solid #e0e7ed;
  padding: 20px;
  border-radius: 12px;
}
.iw-detail-grid h4 {
  font-size: 14px;
  margin: 0 0 16px;
}
.iw-detail-grid dl {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
  font-size: 12px;
}
.iw-detail-grid dt {
  color: #728398;
}
.iw-detail-grid dd {
  margin: 0;
  color: #243f54;
}
.iw-log {
  border-left: 2px solid #c1d8d1;
  padding: 0 0 18px 15px;
  margin-bottom: 12px;
}
.iw-log strong {
  display: block;
  font-size: 12px;
}
.iw-log small,
.iw-log p {
  font-size: 11px;
  color: #708297;
}
.iw-log summary,
.iw-snapshot summary {
  cursor: pointer;
  font-size: 12px;
  color: #34766b;
}
.iw-log pre,
.iw-snapshot pre {
  max-height: 350px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 11px;
  background: #f4f6f9;
  padding: 14px;
}
.iw-snapshot {
  margin-top: 20px;
  border: 1px solid #e0e7ed;
  border-radius: 10px;
  padding: 15px;
}
@media (max-width: 900px) {
  .iw-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .iw-detail-grid {
    grid-template-columns: 1fr;
  }
  .iw-header,
  .iw-section-header {
    flex-wrap: wrap;
  }
  #incentiveWorkflow {
    padding: 16px;
  }
  .iw-tabs button {
    padding: 12px 9px;
    font-size: 12px;
  }
}
/* Keep the daily action available even when the hierarchy requires horizontal scrolling. */
.iw-table td:last-child,
.iw-table th:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 2;
  box-shadow: -8px 0 10px -10px rgba(30, 55, 75, 0.45);
}
.iw-table th:last-child {
  background: #f6f8fb;
  z-index: 3;
}
.iw-table td:nth-child(2),
.iw-table td:nth-child(3),
.iw-table td:nth-child(4) {
  white-space: normal;
  min-width: 92px;
  max-width: 150px;
  overflow-wrap: break-word;
}
@media (max-width: 1400px) {
  .iw-table td,
  .iw-table th {
    padding: 12px 9px;
  }
  .iw-table td:first-child {
    min-width: 128px;
  }
  .iw-actions {
    min-width: 118px;
  }
}

/* Componentes: settings-controls.css */
:root {
  --theme-primary: #b9442d;
  --theme-primary-ink: #fff;
  --theme-sidebar: #172b3b;
  --theme-sidebar-ink: #fff;
  --theme-sidebar-muted: #b7c3ce;
  --theme-canvas-ink: #17212b;
}
#parametrosView .settings-page,
#parametrosView .config-editor,
#parametrosView .config-editor > .panel,
#parametrosView .config-editor > .panel > div,
#parametrosView .config-log-panel {
  min-width: 0;
  max-width: 100%;
}
#parametrosView .config-editor {
  grid-template-columns: minmax(0, 1fr);
}
.game-sheet-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.sidebar,
.sidebar:hover {
  background: var(--theme-sidebar) !important;
}
.sidebar .brand-text strong,
.sidebar .nav-item,
.sidebar .nav-item:hover {
  color: var(--theme-sidebar-ink);
}
.sidebar .brand-text span,
.sidebar .review-nav-heading {
  color: var(--theme-sidebar-muted);
}
.sidebar .nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.primary-button {
  background: var(--theme-primary) !important;
  color: var(--theme-primary-ink) !important;
}
.workspace > .topbar h2,
.workspace > .topbar .view-context,
.workspace > .topbar .eyebrow,
.review-utility > span {
  color: var(--theme-canvas-ink);
}
.iw-tabs button[aria-selected="true"] {
  color: var(--brand);
  border-color: var(--brand);
}
.settings-brief {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.settings-footnote {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 14px;
}
.game-sheet {
  table-layout: fixed;
  width: 100%;
  min-width: 580px;
}
.game-sheet th,
.game-sheet td {
  padding: 10px 7px !important;
}
.game-sheet thead th {
  white-space: normal;
  font-size: 10px !important;
  text-align: right;
  line-height: 1.4;
  vertical-align: middle;
}
.game-sheet thead th:first-child {
  width: 26%;
  text-align: left;
}
.game-sheet thead th:last-child {
  width: 18%;
}
.game-sheet tbody th {
  font-weight: 500 !important;
  white-space: normal !important;
  background: white !important;
  text-align: left;
  font-size: 12px !important;
}
.game-sheet tbody th strong {
  font-weight: 600;
}
.game-sheet tbody input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 6px 7px;
  text-align: right;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.game-sheet tbody input:hover {
  background: #f7f9fb;
  border-color: var(--line);
}
.game-sheet tbody input:focus {
  background: white;
  border-color: var(--brand);
  outline: 2px solid var(--brand-soft);
}
.game-sheet input::-webkit-inner-spin-button {
  opacity: 0;
}
.game-sheet input:focus::-webkit-inner-spin-button {
  opacity: 1;
}
.game-sheet .future-rule th,
.game-sheet .future-rule td {
  background: #fafbfc !important;
}
.game-sheet .future-rule:first-of-type {
  border-top: 2px solid var(--line);
}
.future-rule-tag,
.debit-hint {
  display: inline-block !important;
  font-size: 9px !important;
  font-weight: 500;
  color: #6b7280;
  background: #edf0f4;
  border-radius: 3px;
  padding: 2px 4px;
  margin: 4px 4px 0 0;
}
.debit-hint {
  color: #ab322b;
  background: #fff0ed;
}
.game-sheet .sheet-minutes {
  display: flex;
  align-items: center;
  gap: 3px;
}
.sheet-minutes span {
  font-size: 10px;
  color: var(--muted);
}
.not-applicable {
  display: block;
  text-align: center;
  color: #8994a3;
}
.game-sheet tr[data-game-rule="DISTRATO"] input {
  color: #b42318;
}
.brand-colors-section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.settings-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 15px;
}
.settings-section-heading h4 {
  font-size: 14px;
  margin: 0 0 7px;
}
.settings-section-heading p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 440px;
}
.settings-section-heading button {
  font-size: 11px;
  white-space: nowrap;
}
.brand-color-layout {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(230px, 1.3fr);
  gap: 22px;
  align-items: start;
}
.brand-color-fields {
  display: grid;
  gap: 12px;
}
.brand-color-field > span {
  font-size: 11px;
  font-weight: 500;
}
.brand-color-field > div {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 6px;
}
.brand-color-field input[type="color"] {
  width: 38px;
  height: 36px;
  min-height: 36px;
  padding: 3px;
  cursor: pointer;
  flex-shrink: 0;
}
.brand-color-field input[type="text"] {
  font-family: monospace;
  font-size: 12px;
  min-height: 36px;
  height: 36px;
  width: 100%;
  max-width: 140px;
}
.brand-palette-preview {
  display: grid;
  grid-template-columns: 78px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 210px;
  background: var(--preview-bg);
  color: var(--preview-ink);
}
.brand-palette-preview aside {
  background: var(--preview-side);
  color: var(--preview-side-ink);
  padding: 16px 9px;
}
.brand-palette-preview aside strong {
  display: block;
  font-size: 14px;
  margin-bottom: 22px;
}
.brand-palette-preview aside span {
  display: block;
  font-size: 9px;
  margin-bottom: 14px;
}
.brand-palette-preview > div {
  padding: 16px;
}
.brand-palette-preview small {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.brand-palette-preview h4 {
  font-size: 13px;
  margin: 7px 0 15px;
}
.brand-palette-preview article {
  background: white;
  color: #17212b;
  padding: 14px;
  border-radius: 6px;
}
.brand-palette-preview article span {
  display: block;
  font-size: 9px;
}
.brand-palette-preview article strong {
  display: block;
  font-size: 24px;
  margin: 6px 0 12px;
}
.brand-palette-preview article b {
  display: inline-block;
  background: var(--preview-main);
  color: var(--preview-main-ink);
  padding: 7px 12px;
  font-size: 9px;
  border-radius: 4px;
  font-weight: 500;
}
.trigger-notice {
  border-left: 3px solid #9eafc2;
  padding: 11px 14px;
  background: #f7f9fb;
  margin-bottom: 20px;
  font-size: 12px;
}
.trigger-notice strong {
  font-size: 12px;
}
.trigger-notice p {
  font-size: 11px;
  margin: 5px 0 0;
  line-height: 1.6;
  color: var(--muted);
}
.trigger-settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.trigger-settings-form label {
  display: grid;
  gap: 7px;
  align-content: start;
  font-size: 12px;
}
.trigger-settings-form label:first-child {
  grid-column: 1/-1;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.trigger-settings-form input[type="date"] {
  max-width: 240px;
}
.trigger-settings-form small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
}
.trigger-settings-form select {
  width: 100%;
}
@media (max-width: 1000px) {
  .brand-color-layout {
    grid-template-columns: 1fr;
  }
  .brand-color-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .brand-palette-preview {
    max-width: 420px;
  }
  .settings-section-heading {
    flex-wrap: wrap;
  }
  .trigger-settings-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .brand-color-fields {
    grid-template-columns: 1fr;
  }
  .brand-color-field > div {
    max-width: 240px;
  }
  .game-sheet {
    min-width: 580px;
  }
  .trigger-settings-form {
    gap: 16px;
  }
}

/* Brand mark has its own square; text and uploaded logos never crop each other. */
.sidebar .sidebar-brand {
  min-width: 0;
  align-items: center;
}
.sidebar .sidebar-logo {
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #fff;
}
.sidebar-brand .brand-text {
  min-width: 0;
  flex: 1;
}
.sidebar .brand-text strong {
  display: block;
  line-height: 1.15;
}
.sidebar .brand-text span {
  display: block;
  line-height: 1.4;
  margin-top: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.proid-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.proid-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-slot .brand-logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 3px;
}
.logo-slot .proid-symbol img {
  max-width: 80px;
  max-height: 80px;
}
.sidebar-logo .proid-symbol img {
  max-width: none;
  max-height: none;
}
.review-utility {
  margin-top: 20px;
}
.sp-trigger-panel {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 760px) {
  .review-topline {
    display: flex;
    background: transparent;
    border: 0;
    padding-top: 12px;
    padding-bottom: 0;
    min-height: 0;
  }
  .review-utility {
    margin-top: 0;
  }
}

/* Componentes: settings-polish.css */
/* Scope to parameter content: the sidebar and operating pages retain their existing layout. */
#parametrosView .settings-pages {
  min-width: 0;
}
#parametrosView .sp-settings-page > .config-log-tabs {
  gap: 4px;
  margin: 0;
  padding: 5px;
  border: 1px solid #dfe6eb;
  border-radius: 12px;
  align-items: center;
}
#parametrosView .sp-settings-page > .config-log-tabs button {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 12px;
}
#parametrosView .sp-settings-page {
  gap: 16px;
}
#parametrosView .sp-settings-page > .config-editor {
  gap: 16px;
}
#parametrosView .sp-settings-page > .config-editor > .panel,
#parametrosView .sp-general-panel > .panel,
#parametrosView .config-log-panel {
  padding: 20px !important;
}
#parametrosView .sp-settings-page .panel-header {
  margin-bottom: 17px;
  align-items: flex-start;
  gap: 14px;
}
#parametrosView .sp-settings-page .panel-header h3 {
  font-size: 18px;
  margin: 0 0 5px;
}
#parametrosView .sp-settings-page .panel-header p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
#parametrosView .sp-settings-page .panel-header > .primary-button {
  white-space: nowrap;
}
#parametrosView
  .sp-settings-page
  input:not([type="checkbox"]):not([type="file"]),
#parametrosView .sp-settings-page select {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
}
#parametrosView .sp-settings-page label {
  font-size: 12px;
}
#parametrosView .sp-settings-page .record-actions {
  gap: 7px;
}
#parametrosView .sp-settings-page .record-actions button {
  font-size: 11px;
  padding: 8px 10px;
}
#parametrosView .sp-settings-page .item-log,
#parametrosView .sp-settings-page .field-log,
#parametrosView .sp-settings-page [data-game-log],
#parametrosView .sp-settings-page [data-evento-log] {
  display: none !important;
}
.sp-switch {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 0 !important;
  padding: 7px 3px !important;
  border-radius: 6px;
  background: transparent !important;
  color: #607080 !important;
  font: inherit;
  font-size: 11px !important;
  white-space: nowrap;
  cursor: pointer;
  min-width: 86px;
  min-height: 36px;
  box-shadow: none !important;
  transform: none !important;
  appearance: none;
  -webkit-appearance: none;
}
.sp-switch-track {
  width: 32px;
  height: 20px;
  border-radius: 999px;
  background: #c2cbd3;
  position: relative;
  flex: none;
  transition: background 0.15s;
}
.sp-switch-track > span {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.sp-switch[aria-checked="true"] .sp-switch-track {
  background: #237f6e;
}
.sp-switch[aria-checked="true"] .sp-switch-track > span {
  transform: translateX(12px);
}
.sp-switch[aria-checked="true"] .sp-switch-state {
  color: #237465;
}
.sp-switch:focus-visible,
.sp-native-switch:focus-visible {
  outline: 3px solid #83bcae;
  outline-offset: 3px;
}
.sp-switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sp-native-switch {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 32px;
  box-shadow: none !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #c2cbd3 !important;
  position: relative;
  cursor: pointer;
}
.sp-native-switch:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.sp-native-switch:checked {
  background: #237f6e !important;
}
.sp-native-switch:checked:before {
  transform: translateX(12px);
}
.sp-check-label {
  display: flex !important;
  align-items: center;
  gap: 7px !important;
  margin: 0;
  white-space: nowrap;
}
.sp-native-switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#parametrosView #settings-cargosPage .inline-form {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 85px auto;
  gap: 10px;
  padding: 13px;
  background: #f7f9fb;
  border: 1px solid #e2e8ed;
  border-radius: 10px;
  margin-bottom: 18px;
}
.sp-cargo-head,
#parametrosView .sp-cargos-list > .compact-row {
  display: grid !important;
  grid-template-columns:
    minmax(100px, 1.3fr) minmax(90px, 1fr) minmax(145px, 1.6fr)
    60px 85px 62px;
  gap: 9px !important;
  align-items: center !important;
}
.sp-cargo-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7b8998;
  padding: 9px 12px;
}
#parametrosView .sp-cargos-list {
  gap: 0;
  border: 1px solid #e2e8ed;
  border-radius: 10px;
  overflow: hidden;
}
#parametrosView .sp-cargos-list > .compact-row {
  padding: 12px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e7edf2 !important;
  border-radius: 0 !important;
  background: #fff;
}
#parametrosView .sp-cargos-list > .compact-row:last-child {
  border-bottom: 0 !important;
}
#parametrosView .sp-cargos-list input,
#parametrosView .sp-cargos-list select {
  min-width: 0;
  width: 100%;
}
#parametrosView .sp-cargos-list button {
  padding: 8px 9px;
  font-size: 11px;
}
#parametrosView .sp-entity-list,
#parametrosView .sp-user-list,
#parametrosView .sp-development-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid #e2e8ed;
  border-radius: 12px;
  overflow: hidden;
}
#parametrosView .sp-entity-list > .entity-card,
#parametrosView .sp-user-list > .user-row,
#parametrosView .sp-development-list > .entity-card {
  border: 0;
  border-bottom: 1px solid #e7edf2;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  background: #fff;
}
#parametrosView .sp-entity-list > .entity-card:last-child,
#parametrosView .sp-user-list > .user-row:last-child,
#parametrosView .sp-development-list > .entity-card:last-child {
  border-bottom: 0;
}
#parametrosView .sp-entity-list .entity-body {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 1fr) auto;
  gap: 8px 16px;
  padding: 15px;
  align-items: center;
}
#parametrosView .sp-entity-list .card-topline {
  margin: 0;
}
#parametrosView .sp-entity-list h4,
#parametrosView .sp-development-list h4 {
  font-size: 13px;
  margin: 0 0 4px;
}
#parametrosView .sp-entity-list p,
#parametrosView .sp-development-list p {
  font-size: 11px;
  margin: 0;
  color: #738195;
}
#parametrosView .sp-entity-list .pdv-meta {
  grid-column: 2;
  margin: 0;
}
#parametrosView .sp-entity-list .record-actions {
  grid-column: 3;
  grid-row: 1/3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.sp-associations {
  grid-column: 1/3;
  font-size: 11px;
  color: #647a8d;
}
.sp-associations > summary {
  cursor: pointer;
  color: #3b786d;
  padding: 5px 0;
}
.sp-associations .pdv-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #edf0f4;
  margin-top: 7px;
}
#parametrosView .sp-settings-page .pill {
  font-size: 10px;
  padding: 4px 7px;
}
#parametrosView .sp-user-list > .user-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
}
#parametrosView .sp-user-list .user-row-head {
  display: block;
  margin: 0;
}
#parametrosView .sp-user-list .user-row-head strong {
  font-size: 13px;
}
#parametrosView .sp-user-list .user-row-head span {
  font-size: 11px;
}
#parametrosView .sp-user-list .user-row-status {
  margin-top: 6px;
}
#parametrosView .sp-user-list .entity-meta {
  margin: 0;
}
#parametrosView .sp-user-list .record-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
#parametrosView .sp-development-list > .entity-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
}
#parametrosView .sp-development-list .entity-media {
  height: 58px;
  width: 64px;
  min-height: 0;
  border-radius: 8px;
  object-fit: cover;
  background: #edf1f5;
}
#parametrosView .sp-development-list .entity-body {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  align-items: center;
}
#parametrosView .sp-development-list .entity-body h4,
#parametrosView .sp-development-list .entity-body > p,
#parametrosView .sp-development-list .entity-meta {
  grid-column: 1;
  margin: 0;
}
#parametrosView .sp-development-list .table-actions {
  grid-column: 2;
  grid-row: 1/4;
  display: flex;
  gap: 8px;
  align-items: center;
}
#parametrosView #perfisAcessoList .compact-row {
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  border-radius: 0;
  border-width: 0 0 1px;
}
#parametrosView #roletaConfigsList .compact-row,
#parametrosView #eventosList .compact-row {
  padding: 13px 15px;
  margin: 0;
  border-radius: 0;
  border-width: 0 0 1px;
}
#parametrosView #roletaConfigsList .record-actions {
  align-items: center;
  flex-wrap: nowrap;
}
#parametrosView #incentivoConfigForm.sp-incentive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(255px, 1fr);
  gap: 18px;
  align-items: start;
}
.sp-incentive-fields {
  min-width: 0;
  display: grid;
  gap: 16px;
}
.sp-field-group {
  padding: 0 0 15px;
  border-bottom: 1px solid #e4eaf0;
}
.sp-field-group > h4 {
  font-size: 12px;
  color: #35556b;
  margin: 0 0 12px;
}
.sp-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sp-field-grid > label {
  min-width: 0;
  gap: 5px;
}
.sp-field-grid .full-span {
  grid-column: 1/-1;
}
.sp-field-grid label > span {
  font-size: 11px;
  line-height: 1.4;
}
.sp-incentive-fields > .modal-section {
  margin: 0;
  padding: 0;
  border: 0;
}
.sp-incentive-fields .motivos-list {
  gap: 7px;
}
.sp-incentive-fields .motivo-row {
  display: flex;
  gap: 7px;
}
.sp-incentive-fields .motivo-row input {
  min-width: 0;
}
.sp-incentive-layout .sp-simulator {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 18px;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid #d2e2dd !important;
  border-radius: 12px;
  background: #f1f8f5 !important;
}
.sp-simulator h4 {
  font-size: 17px !important;
}
.sp-simulator p {
  font-size: 12px;
  line-height: 1.5;
}
.sp-simulator label {
  display: grid;
  gap: 5px;
}
.sp-simulator .incentivo-sim {
  font-size: 12px;
}
.sp-settings-page .config-log-panel .history-entry {
  padding: 16px;
  margin: 12px 0;
  border-radius: 10px;
}
.sp-settings-page .config-log-panel .history-entry .panel-header {
  margin-bottom: 8px;
}
.sp-settings-page .config-log-panel .history-entry p {
  font-size: 12px;
}
.sp-settings-page .history-filters {
  gap: 10px;
  padding: 12px;
  background: #f5f8fb;
  border-radius: 10px;
}
.sp-settings-page .history-filters label {
  max-width: 300px;
}
@media (max-width: 1150px) {
  #parametrosView #incentivoConfigForm.sp-incentive-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .sp-field-grid {
    grid-template-columns: 1fr;
  }
  .sp-cargo-head,
  #parametrosView .sp-cargos-list > .compact-row {
    grid-template-columns:
      minmax(95px, 1.2fr) minmax(80px, 1fr) minmax(115px, 1.4fr)
      50px 72px 52px;
    gap: 6px !important;
  }
  #parametrosView .sp-entity-list .entity-body {
    grid-template-columns: 1fr auto;
  }
  #parametrosView .sp-entity-list .pdv-meta {
    grid-column: 1;
  }
  .sp-associations {
    grid-column: 1;
  }
  #parametrosView .sp-entity-list .record-actions {
    grid-column: 2;
    grid-row: 1/4;
  }
  #parametrosView .sp-user-list > .user-row {
    grid-template-columns: 1fr auto;
  }
  #parametrosView .sp-user-list .entity-meta {
    grid-column: 1;
  }
  #parametrosView .sp-user-list .record-actions {
    grid-column: 2;
    grid-row: 1/3;
  }
}
@media (max-width: 760px) {
  #parametrosView .sp-settings-page > .config-editor > .panel,
  #parametrosView .sp-general-panel > .panel,
  #parametrosView .config-log-panel {
    padding: 14px !important;
  }
  #parametrosView #incentivoConfigForm.sp-incentive-layout {
    grid-template-columns: 1fr;
  }
  .sp-incentive-layout .sp-simulator {
    grid-column: 1;
    grid-row: 1;
    position: static;
  }
  .sp-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-cargo-head {
    display: none;
  }
  #parametrosView .sp-cargos-list > .compact-row {
    grid-template-columns: 1fr 1fr;
  }
  #parametrosView #settings-cargosPage .inline-form {
    grid-template-columns: 1fr 1fr;
  }
  .sp-associations .pdv-summary {
    grid-template-columns: 1fr;
  }
  #parametrosView .sp-development-list .entity-body {
    grid-template-columns: 1fr;
  }
  #parametrosView .sp-development-list .table-actions {
    grid-column: 1;
    grid-row: auto;
  }
  .sp-settings-page .config-log-tabs {
    overflow-x: auto;
  }
  .sp-settings-page .config-log-tabs button {
    white-space: nowrap;
  }
}

/* Uniform table geometry: row headings share the same separator and the four point columns share one width. */
#parametrosView .game-sheet thead th:first-child {
  width: 28%;
}
#parametrosView .game-sheet thead th:not(:first-child):not(:last-child) {
  width: 14%;
}
#parametrosView .game-sheet thead th:last-child {
  width: 16%;
  text-align: center;
}
#parametrosView .game-sheet th,
#parametrosView .game-sheet td {
  padding: 10px !important;
  vertical-align: middle;
  box-sizing: border-box;
}
#parametrosView .game-sheet tbody th,
#parametrosView .game-sheet tbody td {
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
#parametrosView .game-sheet tbody tr:last-child th,
#parametrosView .game-sheet tbody tr:last-child td {
  border-bottom: 0;
}
#parametrosView .game-sheet tbody tr:hover th,
#parametrosView .game-sheet tbody tr:hover td {
  background: #fafbfc !important;
}
#parametrosView .game-sheet tbody input {
  box-sizing: border-box;
  min-height: 34px;
  height: 34px;
  padding: 6px 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#parametrosView .game-sheet tbody .sheet-minutes {
  justify-content: center;
  gap: 5px;
}
#parametrosView .game-sheet tbody .game-minutos {
  width: 58px;
  max-width: 100%;
  text-align: right;
}
#parametrosView .game-sheet input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
#parametrosView .game-sheet input::-webkit-inner-spin-button,
#parametrosView .game-sheet input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ProID: linguagem visual compartilhada — operação, pessoas e consulta.
   As cores configuráveis continuam sendo aplicadas por settings-controls.js. */
:root {
  --ink: #202b30;
  --ink-2: #36454d;
  --muted: #596971;
  --faint: #69777f;
  --surface-2: #f8f9f8;
  --surface-3: #f0f3f1;
  --line: #dfe5e2;
  --line-strong: #c7d2cd;
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --shadow: none;
  --shadow-sm: none;
  --table-row-padding: 15px;
}
body {
  font-size: 14px;
  line-height: 1.5;
  background-image: none;
}
body.modal-open {
  overflow: hidden;
}
h1,
h2,
h3,
h4 {
  font-weight: 650;
  letter-spacing: -0.025em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #2870b5;
  outline-offset: 3px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #2870b5;
  outline-offset: 1px;
}
input,
select,
textarea {
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14px;
}
input[type="checkbox"],
input[type="radio"] {
  min-height: auto;
  accent-color: var(--brand);
}
label {
  font-size: 13px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.primary-button,
.ghost-button {
  font-size: 13px;
  font-weight: 600;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 7px;
  box-shadow: none;
}
.primary-button:hover,
.ghost-button:hover {
  transform: none;
}
.ghost-button {
  background: var(--surface);
}
.text-button {
  font-size: 13px;
}
.form-message {
  font-size: 13px;
  line-height: 1.6;
}
.pill,
.iw-pill,
.history-type {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.5;
  padding: 4px 9px;
}
.pill.ok {
  color: #216a53;
  background: #e9f4ed;
}
.pill.warn {
  color: #8a501e;
  background: #fff2db;
}
.pill.info {
  color: #265c7d;
  background: #eaf2f7;
}

/* Navegação permanente, com recolhimento explícito e rótulos preservados. */
.sidebar,
.sidebar:hover {
  width: 238px;
  padding: 26px 18px 20px;
  gap: 12px;
  border-right: 0;
  box-shadow: none;
}
.sidebar .sidebar-brand {
  padding: 0 4px 22px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--theme-sidebar-ink) 16%, transparent);
  gap: 12px;
}
.sidebar .sidebar-logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  min-width: 42px;
  border-radius: 10px;
}
.sidebar .brand-text strong {
  font-size: 22px;
  letter-spacing: -0.7px;
}
.sidebar .brand-text span {
  font-size: 11px;
}
.sidebar .nav-item {
  border-radius: 7px;
  padding: 10px 12px;
  min-height: 43px;
  font-size: 13px;
  font-weight: 500;
  gap: 12px;
}
.sidebar .nav-item.active {
  box-shadow: inset 3px 0 0 var(--brand);
  font-weight: 650;
}
.review-nav-heading {
  padding: 16px 12px 7px;
  font-size: 10px;
  letter-spacing: 0.11em;
}
.sidebar-logout {
  margin-top: 18px !important;
}
.sidebar-collapse {
  width: 100%;
  border: 1px solid
    color-mix(in srgb, var(--theme-sidebar-ink) 22%, transparent);
  background: transparent;
  color: var(--theme-sidebar-ink);
  border-radius: 7px;
  font-size: 12px;
  padding: 8px;
}
.workspace {
  margin-left: 238px;
  padding: 0 32px 56px;
  gap: 22px;
  max-width: 1920px;
}
.review-topline {
  display: none;
}
.review-utility {
  min-height: 62px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.workspace-breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--theme-canvas-ink);
  font-size: 12px;
}
.workspace-breadcrumb span:first-child {
  font-weight: 700;
}
.workspace-breadcrumb span:nth-child(2) {
  opacity: 0.4;
}
.review-search-button {
  min-height: 36px;
  font-size: 12px;
  border-color: var(--line);
  gap: 44px;
  background: var(--surface);
}
.workspace-utility-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
}
.workspace-utility-actions .review-search-button {
  min-width: 0;
  flex: 1 1 auto;
}
.workspace-user {
  display: flex;
  flex: 0 0 auto;
  max-width: 260px;
}
.workspace-user .user-chip {
  max-width: 100%;
}
.workspace-user .user-chip-avatar {
  flex-shrink: 0;
}
.workspace-user .user-chip-text {
  min-width: 0;
}
.workspace-user .user-chip-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar {
  align-items: center;
  gap: 12px;
}
.topbar h2 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.9px;
  font-weight: 650;
  margin: 5px 0;
}
.topbar .eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
}
.topbar .view-context {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}
.topbar-actions {
  align-self: center;
}
.shared-context {
  padding: 13px 18px;
  gap: 12px 20px;
  border-radius: 8px;
  align-items: center;
  background: var(--surface);
}
.context-label {
  margin-right: auto;
  min-width: 130px;
}
.context-label strong {
  font-size: 12px;
}
.context-label small {
  font-size: 11px;
  margin-top: 2px;
}
.shared-context label {
  font-size: 11px;
  gap: 5px;
  min-width: 155px;
}
.shared-context select {
  max-width: 280px;
  min-height: 37px;
  padding: 7px 10px;
  font-size: 13px;
}
.shared-context p {
  font-size: 11px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.context-dates {
  flex-wrap: wrap;
}

/* Painel de trabalho: oito indicadores preservados, com hierarquia e escopo. */
.dashboard {
  gap: 20px;
}
.daily-brief {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 2px 0 4px;
  order: 0;
}
.daily-brief h3 {
  font-size: 22px;
  margin: 4px 0 3px;
}
.daily-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.daily-actions .primary-button span {
  margin-left: 12px;
}
.kpi-row {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.metric-card {
  padding: 19px 22px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
  gap: 6px;
  min-width: 0;
}
.metric-card + .metric-card {
  border-left: 1px solid var(--line);
}
.metric-card.attention {
  background: #fdf7ed;
}
.metric-label {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 550;
}
.metric-card strong,
.operational-metric strong {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.metric-foot,
.operational-metric .metric-foot {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.operational-metric {
  position: relative;
}
.operational-metric[data-operational-go]::after {
  content: "↗";
  position: absolute;
  right: 15px;
  top: 15px;
  color: var(--muted);
}
button.operational-metric:hover {
  background: var(--surface-2);
}
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}
.panel-header {
  gap: 18px;
  margin-bottom: 18px;
}
.panel-header h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.45px;
}
.panel-header p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 5px;
}
.dashboard .panel-header h3 {
  font-size: 17px;
}
#roletaResumoKpis {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--line);
}
#roletaResumoKpis strong {
  font-size: 28px;
}
.operational-row {
  padding: 14px 0;
  font-size: 13px;
}
.operational-row small {
  font-size: 12px;
}
.attention-item,
.creci-item {
  border-radius: 6px;
}

/* Tabelas: boa leitura, ações alcançáveis e densidade escolhida pelo usuário. */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th {
  font-size: 12px !important;
  padding: 12px 14px;
  color: var(--muted) !important;
  background: #f5f7f5 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 13px !important;
  padding: var(--table-row-padding) 14px !important;
  line-height: 1.5;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
td small {
  font-size: 11px;
  line-height: 1.5;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #fafbf9;
}
.table-actions {
  gap: 7px;
}
.table-actions button {
  font-size: 12px;
  min-height: 36px;
}
.table-preferences {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.table-preferences label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.table-preferences select {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 12px;
}
body[data-density="compact"] {
  --table-row-padding: 9px;
}
body[data-density="compact"] td {
  padding-top: var(--table-row-padding) !important;
  padding-bottom: var(--table-row-padding) !important;
}
.directory-person {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  min-width: 210px;
}
.directory-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e9efeb;
  color: #3f6855;
  font-size: 12px;
  font-weight: 600;
}
.directory-row:nth-child(3n + 2) .directory-avatar {
  background: #f8ecdf;
  color: #89602f;
}
.directory-row:nth-child(3n) .directory-avatar {
  background: #ebedf6;
  color: #5c658a;
}
.directory-identity {
  display: grid;
}
.directory-identity strong {
  font-size: 13px;
}
.directory-identity small {
  color: var(--muted);
}
.directory-contact,
.directory-hierarchy {
  min-width: 150px;
}
.directory-actions {
  min-width: 180px;
}
.directory-person:hover strong {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ficha de pessoa: cabeçalho humano e todas as seções no mesmo documento. */
.modal-panel {
  width: min(1080px, 96vw);
  max-height: 94dvh;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 20px 26px;
  background: var(--surface);
  gap: 15px;
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 21px;
  margin-top: 3px;
}
.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-actions {
  padding: 16px 26px;
  background: var(--surface);
  flex-shrink: 0;
  min-height: 0;
}
.modal-actions:empty {
  display: none;
}
.person-profile {
  min-width: 0;
}
.person-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.person-avatar {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  background: #e7efea;
  display: grid;
  place-items: center;
  color: #496657;
  font-size: 29px;
  font-weight: 600;
}
.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-identity {
  flex: 1;
  min-width: 180px;
}
.person-identity h3 {
  font-size: 25px;
  margin: 4px 0;
}
.person-eyebrow {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.person-role,
.person-contact {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.person-status {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.person-summary {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 20px 0;
}
.person-summary dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.person-summary dd {
  font-size: 13px;
  margin: 0;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.person-nav {
  display: flex;
  gap: 6px;
  padding: 8px 0;
  border-block: 1px solid var(--line);
  position: sticky;
  top: -24px;
  z-index: 5;
  background: var(--surface);
  overflow-x: auto;
}
.person-nav-button {
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 13px;
  font-size: 12px;
  border-radius: 6px;
}
.person-nav-button.active {
  color: var(--brand);
  background: var(--brand-soft);
}
.person-nav-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.person-section[hidden],
#modalActions [hidden] {
  display: none !important;
}
.person-section {
  padding: 26px 0;
  border: 0;
}
.person-section:last-child {
  border: 0;
}
.person-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  margin-bottom: 20px;
}
.person-section-heading h4 {
  font-size: 17px;
  margin: 3px 0 6px;
}
.person-section-heading p {
  font-size: 12px;
  color: var(--muted);
  max-width: 580px;
}
.person-section-label {
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.06em;
}
.person-section .form-grid {
  margin: 0;
}
.person-section input[readonly] {
  background: var(--surface-2);
  color: var(--ink-2);
  border-color: #e7ebe7;
}
.person-section--participation {
  background: #f9fbf8;
  padding-inline: 18px;
  margin-inline: -18px;
}
.person-photo-controls {
  display: grid;
  gap: 14px;
}
.person-photo-controls .photo-frame {
  width: 120px;
  height: 120px;
}

/* Filas lado a lado, com próximo atendimento reconhecível sem depender da cor. */
.roleta-status-bar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 18px 20px;
  gap: 20px;
}
.roleta-times {
  gap: 18px;
}
.roleta-times span {
  font-size: 11px;
}
.roleta-times strong {
  font-size: 13px;
}
.roleta-actions {
  flex-wrap: wrap;
  gap: 8px;
}
.roleta-actions .text-button {
  margin-left: auto;
}
.roleta-filas {
  gap: 22px;
  margin-top: 22px;
}
.roleta-fila-col {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.roleta-fila-col h4 {
  padding: 16px 18px;
  background: var(--surface-2);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.roleta-fila-list {
  padding: 0;
  gap: 0;
}
.roleta-fila-row {
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  gap: 12px;
}
.roleta-fila-row.proximo {
  background: #edf5ee;
  box-shadow: inset 3px 0 0 #46785c;
}
.roleta-fila-row:last-child {
  border-bottom: 0;
}
.roleta-fila-ordem {
  width: 28px;
  min-width: 28px;
  font-size: 14px;
  background: transparent;
  color: var(--muted);
}
.roleta-fila-main strong {
  font-size: 13px;
}
.roleta-fila-main small {
  font-size: 11px;
}

/* Histórico e finanças: detalhe contextual e eventos em ordem temporal. */
.settlement-detail-dialog,
.settlement-action-dialog {
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 80px #142b3b30;
  max-height: 94dvh;
}
.settlement-detail-dialog {
  width: min(920px, 94vw);
  margin: 3vh 20px 3vh auto;
}
.settlement-action-dialog {
  width: min(560px, 94vw);
}
.settlement-detail-dialog::backdrop,
.settlement-action-dialog::backdrop {
  background: #182b3980;
}
.settlement-dialog-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 2;
}
.settlement-dialog-header h3,
.settlement-dialog-header h4 {
  font-size: 22px;
  margin: 5px 0;
}
.settlement-dialog-header p {
  font-size: 12px;
  color: var(--muted);
}
.settlement-dialog-body {
  padding: 24px 26px;
}
.settlement-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.settlement-detail-status {
  margin: 15px 0;
}
.settlement-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.settlement-detail-metrics > * {
  padding: 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.settlement-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.settlement-timeline,
.history-log {
  position: relative;
  border-left: 2px solid #c5d7cd;
  padding: 0 0 22px 20px;
  margin: 18px 0 0 8px;
}
.settlement-timeline::before,
.history-log::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6c8f7c;
}
.settlement-timeline-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.settlement-changes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 12px;
  margin-top: 12px;
}
.settlement-changes > * {
  background: var(--surface-2);
  padding: 12px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.settlement-before {
  color: var(--muted);
}
.settlement-inline-error {
  color: #9f3627;
  background: #fff0ec;
  border-left: 3px solid #bc4936;
  padding: 12px;
  margin: 12px 0;
}
.settlement-draft {
  color: #865617;
  font-size: 12px;
}
.iw-header h3 {
  font-size: 20px;
}
.iw-metrics {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.iw-metrics article {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  padding: 16px 18px;
}
.iw-metrics article:last-child {
  border: 0;
}
.iw-metrics strong {
  font-size: 25px;
}
.iw-tabs {
  margin-top: 16px;
}
.iw-tabs button {
  padding-inline: 18px;
  font-size: 13px;
}
.iw-filters label,
.iw-footnote {
  font-size: 12px;
}
.iw-detail-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}
.iw-detail-grid > section {
  padding: 18px;
}
.history-kv dt,
.history-summary span,
.history-log time {
  font-size: 12px;
}
.history-kv dd,
.history-log p {
  font-size: 13px;
}
.history-filters label {
  font-size: 12px;
}

/* Parametrizações: índice lateral leve e formulários agrupados. */
.settings-workspace {
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 24px;
}
.settings-subnav {
  border: 0;
  border-radius: 0;
  background: transparent;
  border-right: 1px solid var(--line);
  padding: 0 16px 0 0;
  gap: 4px;
}
.param-nav-item {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 6px;
  line-height: 1.5;
}
.settings-group-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 15px 12px 5px;
  text-transform: uppercase;
}
#parametrosView .sp-settings-page > .config-log-tabs {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  gap: 14px;
}
#parametrosView .sp-settings-page > .config-log-tabs button {
  background: transparent;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 2px;
  font-size: 13px;
}
#parametrosView .sp-settings-page > .config-log-tabs button.active {
  border-bottom-color: var(--brand);
  color: var(--brand);
}
#parametrosView .sp-settings-page label,
#parametrosView .sp-settings-page .panel-header p {
  font-size: 13px;
}
#parametrosView
  .sp-settings-page
  input:not([type="checkbox"]):not([type="file"]),
#parametrosView .sp-settings-page select {
  font-size: 13px;
  min-height: 40px;
}
#parametrosView .sp-user-list .user-row-head span,
#parametrosView .sp-entity-list p,
#parametrosView .sp-development-list p {
  font-size: 12px;
}
.history-entry {
  border-radius: 6px;
}

/* Responsividade: a página nunca transfere seu overflow para a janela. */
@media (min-width: 761px) {
  body.sidebar-condensed .sidebar,
  body.sidebar-condensed .sidebar:hover {
    width: 82px;
    padding-inline: 14px;
  }
  body.sidebar-condensed .sidebar .brand-text,
  body.sidebar-condensed .sidebar .nav-label,
  body.sidebar-condensed .review-nav-heading {
    display: none;
  }
  body.sidebar-condensed .sidebar-brand {
    padding-inline: 4px;
  }
  body.sidebar-condensed .nav-item {
    justify-content: center;
    padding-inline: 10px;
  }
  body.sidebar-condensed .sidebar .nav-list {
    gap: 8px;
  }
  body.sidebar-condensed .sidebar-collapse {
    font-size: 0;
  }
  body.sidebar-condensed .sidebar-collapse::before {
    content: "→";
    font-size: 18px;
  }
  body.sidebar-condensed .workspace {
    margin-left: 82px;
  }
}
@media (max-width: 1200px) {
  .workspace {
    padding-inline: 24px;
  }
  .daily-brief {
    align-items: flex-start;
    flex-direction: column;
  }
  .metric-card {
    padding: 17px;
  }
  .context-label {
    flex-basis: 100%;
  }
  .shared-context label {
    flex: 1;
  }
  .shared-context select {
    width: 100%;
    max-width: none;
  }
  .settings-workspace {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 1000px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard > * {
    grid-column: 1 / -1;
  }
  .person-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .sidebar,
  .sidebar:hover {
    width: 238px;
  }
  .sidebar-collapse {
    display: none;
  }
  .workspace {
    margin-left: 0;
    padding: 0 16px 40px;
    gap: 18px;
  }
  .review-topline {
    display: flex;
    margin: 0;
    padding: 12px 0 0;
    background: transparent;
    border: 0;
  }
  .review-utility {
    min-height: 44px;
    padding: 0 0 12px;
  }
  .workspace-breadcrumb {
    display: none;
  }
  .review-search-button {
    width: 100%;
  }
  .workspace-utility-actions {
    width: 100%;
    gap: 10px;
  }
  .workspace-utility-actions .review-search-button {
    gap: 12px;
    min-height: 46px;
  }
  .workspace-user .user-chip {
    padding: 5px;
  }
  .workspace-user .user-chip-text {
    display: none;
  }
  .topbar h2 {
    font-size: 27px;
  }
  .shared-context {
    padding: 12px;
    gap: 12px;
  }
  .shared-context label {
    min-width: 0;
    flex-basis: calc(50% - 12px);
  }
  .context-dates {
    width: 100%;
  }
  .daily-brief {
    gap: 14px;
  }
  .daily-brief h3 {
    font-size: 20px;
  }
  .daily-actions {
    gap: 8px;
  }
  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-card {
    padding: 16px;
  }
  .metric-card:nth-child(3) {
    border-left: 0;
  }
  .metric-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .metric-card strong {
    font-size: 26px;
  }
  .metric-label {
    padding-right: 10px;
  }
  .panel {
    padding: 18px;
  }
  .settings-workspace {
    display: block;
  }
  .settings-subnav {
    padding: 0 0 14px;
    border: 0;
    margin-bottom: 18px;
    position: static;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .param-nav-item {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .settings-group-label {
    display: none;
  }
  .modal-backdrop {
    padding: 0;
  }
  .modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .modal-header {
    padding: 16px 18px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-actions {
    padding: 12px 18px;
  }
  .person-header {
    gap: 16px;
  }
  .person-avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-radius: 18px;
  }
  .person-identity h3 {
    font-size: 21px;
  }
  .person-nav {
    top: -18px;
  }
  .person-nav-button {
    padding-inline: 10px;
  }
  .person-section-heading {
    flex-wrap: wrap;
  }
  .person-section--participation {
    margin-inline: 0;
    padding-inline: 0;
    background: transparent;
  }
  .settlement-detail-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .settlement-dialog-header,
  .settlement-dialog-body {
    padding: 18px;
  }
  .settlement-detail-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .settlement-changes {
    grid-template-columns: 1fr;
  }
  .settlement-timeline-heading {
    flex-wrap: wrap;
  }
  .roleta-actions .text-button {
    margin-left: 0;
  }
  .table-preferences {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Correção administrativa usa o contrato existente com revisão e confirmação. */
.roleta-admin-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: 92dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 0 24px 90px #162b3c40;
  overflow: auto;
}
.roleta-admin-dialog::backdrop {
  background: #162b3c80;
}
.ra-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 2;
}
.ra-header h2 {
  font-size: 23px;
  margin: 5px 0;
}
.ra-eyebrow {
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ra-context {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.ra-section {
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}
.ra-section h3 {
  font-size: 17px;
  margin-bottom: 12px;
}
.ra-section label {
  font-size: 13px;
}
.ra-section textarea {
  width: 100%;
  min-height: 90px;
}
.ra-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ra-time-grid input {
  width: 100%;
}
.ra-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 16px 0;
}
.ra-table {
  min-width: 620px;
}
.ra-table input[type="number"] {
  width: 86px;
  min-height: 38px;
  text-align: center;
}
.ra-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0;
}
.ra-checkbox {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
}
.ra-checkbox input {
  margin-top: 4px;
}
.ra-notice,
.ra-error,
.ra-progress {
  padding: 14px 18px;
  margin: 18px 26px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.7;
}
.ra-notice {
  color: #77501d;
  background: #fff5e4;
  border: 1px solid #ead7b6;
}
.ra-error {
  color: #943425;
  background: #fff0eb;
  border-left: 3px solid #ba4936;
}
.ra-progress {
  background: var(--surface-2);
  color: var(--muted);
}
.ra-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  bottom: 0;
  flex-wrap: wrap;
}
.ra-actions .secondary-button,
.ra-header .secondary-button {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 7px;
  padding: 10px 16px;
}
.ra-review {
  padding: 20px 26px;
}
.ra-review h3 {
  font-size: 18px;
  margin-bottom: 15px;
}
.ra-review dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ra-review dt {
  font-size: 12px;
  color: var(--muted);
}
.ra-review dd {
  margin: 0;
  font-size: 13px;
}
.visit-resend-confirm {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #e2cba9;
  border-radius: 8px;
  background: #fff7e9;
}
.visit-resend-confirm p {
  font-size: 13px;
  margin-bottom: 12px;
}
.visit-detail-feedback,
.visit-resend-result {
  padding: 14px;
  margin: 12px 0;
  font-size: 13px;
  background: #edf5ef;
  border-radius: 7px;
}
.visit-answers {
  padding-top: 20px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.visit-answers h4 {
  font-size: 16px;
  margin-bottom: 12px;
}
.settlement-draft-mark {
  font-size: 11px;
  color: #8a5d21;
  margin-left: 8px;
}
.daily-brief .eyebrow,
.daily-brief h3 {
  display: none;
}
.daily-brief p {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 550;
}
@media (max-width: 760px) {
  .roleta-admin-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .ra-header,
  .ra-section,
  .ra-review,
  .ra-actions {
    padding: 18px;
  }
  .ra-time-grid {
    grid-template-columns: 1fr;
  }
  .ra-notice,
  .ra-error,
  .ra-progress {
    margin: 16px 18px;
  }
}
.modal-panel {
  padding: 0;
}
.modal-panel:has(#refreshModalConsultorButton) .modal-body,
.modal-panel:has(#modalRoletaTipo) .modal-body {
  padding: 24px 26px;
}
.person-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.person-section h4 {
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
}
.person-section .consultor-cv-notice {
  margin: 0 0 18px;
}
.checkin-progress {
  display: flex;
  list-style: none;
  padding: 0 0 18px;
  margin: 0 0 24px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.checkin-progress li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding-right: 10px;
}
.checkin-progress .checkin-step-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}
.checkin-progress li.is-complete .checkin-step-number {
  background: #e9f3ed;
  color: #396c50;
  border-color: #bad3c2;
}
.checkin-progress li.is-current {
  color: var(--ink);
  font-weight: 650;
}
.checkin-progress li.is-current .checkin-step-number {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}
.checkin-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.checkin-section-heading {
  display: flex;
  align-items: start;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  text-align: left;
}
.checkin-section-heading h3,
.checkin-section-heading h4 {
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-transform: none;
}
.checkin-section-heading p {
  font-size: 12px;
  color: var(--muted);
}
.checkin-question {
  font-size: 18px;
  margin-bottom: 15px;
}
.checkin-bigbtn {
  font-size: 14px;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: none;
}
.checkin-bigbtn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.checkin-routing-note {
  border-left: 3px solid #a6bdad;
  background: #f4f8f5;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0;
}
.checkin-field-error {
  font-size: 12px;
  color: #a43d2c;
  font-weight: 500;
}
.checkin-field-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.checkin-input[aria-invalid="true"] {
  border-color: #b74432;
  box-shadow: 0 0 0 1px #b74432;
}
.checkin-review {
  background: #f5f8f5;
  padding: 22px;
  border: 1px solid #c6d8cb;
  border-radius: 8px;
  margin-top: 22px;
}
.checkin-review h3,
.checkin-review h4 {
  font-size: 19px;
}
.checkin-review-grid {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 2fr;
  gap: 10px 20px;
  font-size: 13px;
  margin: 18px 0;
}
.checkin-review-grid dt {
  color: var(--muted);
}
.checkin-review-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.checkin-feedback.error {
  border-left: 3px solid #b74432;
  background: #fff0eb;
  color: #913526;
  padding: 14px;
  margin: 14px 0;
}
.checkin-feedback.ok {
  border-left: 3px solid #4d8060;
  background: #eaf4ec;
  color: #355f44;
  padding: 14px;
  margin: 14px 0;
}
.checkin-submit-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0 0;
}
.ra-section {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  margin: 0;
  min-width: 0;
}
.ra-section legend {
  font-size: 17px;
  font-weight: 650;
  padding: 12px 0 0;
}
.ra-content > .ra-context,
#ra-description,
.ra-loading {
  padding: 14px 26px 0;
}
.ra-progress:empty {
  display: none;
}
.ra-review .ra-actions {
  padding: 18px 0 0;
  position: static;
}
@media (max-width: 760px) {
  .modal-panel:has(#refreshModalConsultorButton) .modal-body,
  .modal-panel:has(#modalRoletaTipo) .modal-body {
    padding: 18px;
  }
  .person-summary {
    grid-template-columns: 1fr 1fr;
  }
  .checkin-review-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .checkin-review-grid dd {
    margin-bottom: 10px;
  }
  .checkin-section-heading {
    flex-wrap: wrap;
  }
  .checkin-progress {
    gap: 8px;
  }
  .checkin-progress li {
    padding: 0;
    font-size: 11px;
  }
}
.settlement-detail-metrics span,
.settlement-detail-metrics strong,
.settlement-detail-metrics small {
  display: block;
}
.settlement-detail-metrics span {
  font-size: 12px;
  color: var(--muted);
}
.settlement-detail-metrics strong {
  font-size: 27px;
  font-weight: 600;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}
.settlement-detail-metrics small {
  font-size: 11px;
  color: var(--muted);
}
.settlement-detail-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.settlement-timeline {
  list-style: none;
  border: 0;
  padding: 0;
  margin: 20px 0 0;
}
.settlement-timeline::before {
  display: none;
}
.settlement-timeline > li {
  position: relative;
  padding-left: 20px;
  margin-left: 4px;
}
.settlement-timeline > li::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  left: -5px;
  top: 5px;
  background: #6c8f7c;
  border-radius: 50%;
}
.settlement-timeline p {
  margin: 7px 0;
  font-size: 12px;
}
.settlement-timeline-heading time {
  font-size: 11px;
  color: var(--muted);
}
.settlement-changes {
  margin: 16px 0;
}
.settlement-changes dt {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.settlement-changes dd {
  margin: 0;
}
.settlement-action-dialog > form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settlement-action-dialog > form > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.settlement-action-dialog .modal-actions {
  padding: 16px 0 0;
}
.checkin-review-grid > div {
  display: contents;
}

.columns-menu {
  position: relative;
}
.columns-menu > summary {
  list-style: none;
  cursor: pointer;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}
.columns-menu > summary::after {
  content: " ⌄";
  margin-left: 10px;
}
.columns-options {
  display: grid;
  gap: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 12;
  padding: 16px;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 10px 30px #172b3b20;
}
.columns-options label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
#consultoresView .panel-header {
  flex-direction: row-reverse;
  align-items: start;
}
#consultoresView .panel-tools {
  flex: 1;
  align-items: start;
}
#consultoresView .panel-tools .search-input {
  width: min(440px, 100%);
}
#consultoresView table :is(th, td):nth-child(3),
#consultoresView table :is(th, td):nth-child(n + 6):nth-child(-n + 10) {
  text-align: center;
  vertical-align: middle;
}
#consultoresView table td:last-child,
#consultoresView table th:last-child {
  position: sticky;
  right: 0;
  background: var(--surface);
  z-index: 2;
  box-shadow: -7px 0 12px -10px #182c3f60;
}
#consultoresView .directory-actions {
  min-width: 130px;
}
#consultoresView .directory-actions .table-actions {
  flex-direction: column;
  align-items: stretch;
}
@media (max-width: 760px) {
  .columns-options {
    right: auto;
    left: 0;
  }
  #consultoresView .panel-header {
    flex-direction: column;
  }
}
#consultoresView table[data-hidden-columns~="3"] tr > :nth-child(3) {
  display: none;
}
#consultoresView table[data-hidden-columns~="4"] tr > :nth-child(4) {
  display: none;
}
#consultoresView table[data-hidden-columns~="5"] tr > :nth-child(5) {
  display: none;
}
#consultoresView table[data-hidden-columns~="6"] tr > :nth-child(6) {
  display: none;
}
#consultoresView table[data-hidden-columns~="7"] tr > :nth-child(7) {
  display: none;
}
#consultoresView table[data-hidden-columns~="8"] tr > :nth-child(8) {
  display: none;
}
#consultoresView table[data-hidden-columns~="9"] tr > :nth-child(9) {
  display: none;
}
#consultoresView table[data-hidden-columns~="10"] tr > :nth-child(10) {
  display: none;
}
#consultoresView .directory-actions {
  flex-direction: column;
  align-items: stretch;
}
@media (max-width: 760px) {
  #consultoresView table td:last-child,
  #consultoresView table th:last-child {
    position: static;
    box-shadow: none;
  }
  .table-preferences {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
  }
  .table-preferences label {
    flex-wrap: wrap;
  }
  .columns-menu > summary {
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .sp-cargo-head {
    display: none !important;
  }
}

#consultoresView .directory-actions {
  flex-direction: row;
  align-items: start;
  flex-wrap: nowrap;
  min-width: 130px;
  gap: 8px;
}
.directory-more {
  min-width: 36px;
}
.directory-more > .directory-more-trigger {
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
}
.directory-action-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 156px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 8px 24px #182c3f24;
}
.directory-action-menu:popover-open {
  display: grid;
  gap: 2px;
}
.directory-action-menu .ghost-button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  box-shadow: none;
  text-align: left;
  border-radius: 5px;
  white-space: nowrap;
}
.directory-action-menu .ghost-button:hover {
  background: #fff0eb;
}
.directory-contact {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .settings-workspace {
    display: block;
  }
  .settings-subnav {
    padding: 0 0 14px;
    border: 0;
    margin-bottom: 18px;
    position: static;
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
  }
  .settings-subnav .param-nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .settings-group-label {
    display: none;
  }
  .brand-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .logo-upload-panel,
  .logo-upload-panel input {
    min-width: 0;
    max-width: 100%;
  }
}

/* A visita começa em um único formulário; os indicadores são só de consulta. */
#checkinView .visit-summary-caption {
  order: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
#checkinView #checkinKpis {
  order: 1;
}
#checkinView .visit-entry-panel {
  order: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.visit-entry-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.visit-entry-panel p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.visit-entry-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
#checkinView .visit-landing-message {
  order: 3;
  margin: 0;
  padding: 14px 18px;
  background: #edf5ef;
  color: #305d47;
  border-radius: 7px;
}
#checkinView .visit-history-panel {
  order: 4;
}
#checkinView .visit-history-panel .panel-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
#checkinView .visit-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#checkinKpis div.operational-metric {
  cursor: default;
}
#checkinKpis div.operational-metric:hover {
  background: var(--surface);
  border-color: var(--line);
}
.visit-metrics-error {
  grid-column: 1 / -1;
  padding: 18px;
  font-size: 13px;
}
.new-visit-dialog {
  width: min(1000px, calc(100vw - 48px));
  max-width: 100vw;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 90px #182c3f40;
}
.new-visit-dialog[open] {
  display: flex;
  flex-direction: column;
}
.new-visit-dialog::backdrop {
  background: #122b3b66;
  backdrop-filter: blur(3px);
}
.new-visit-header {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.new-visit-header h2 {
  font-size: 24px;
  margin: 5px 0 0;
  letter-spacing: -0.6px;
}
.new-visit-body {
  padding: 24px 28px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.new-visit-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}
.new-visit-context label {
  min-width: 0;
  font-size: 13px;
}
.new-visit-context select {
  width: 100%;
  min-width: 0;
}
#checkinContextStatus {
  margin: 12px 0 20px;
  line-height: 1.6;
}
.new-visit-dialog .checkin-progress {
  margin-top: 4px;
}
.permission-choice {
  display: grid;
  gap: 9px;
  margin: 14px 0;
  font-size: 13px;
}
.permission-choice small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}
.permission-choice input[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  #checkinView .visit-entry-panel {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  .new-visit-dialog {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .new-visit-header,
  .new-visit-body {
    padding: 18px;
  }
  .new-visit-header h2 {
    font-size: 21px;
  }
  .new-visit-context,
  #checkinView .visit-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .visit-entry-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .visit-entry-actions button {
    flex: 1 1 auto;
  }
}

/* Marketing: planning, field execution and evidence. */
#gameLevelDashboard:empty { display: none; }
#gameLevelDashboard .level-overview { margin: 0; }
.mkt-workspace { display: grid; gap: 20px; }
.mkt-workspace > #mktMessage:empty { display: none; }
.mkt-top-actions, .mkt-section-intro, .mkt-detail-controls, .mkt-list-toolbar, .mkt-map-tools, .mkt-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mkt-top-actions p, .mkt-section-intro p { margin: 6px 0 0; color: var(--muted, #637580); }
.mkt-section-kicker { font-size: 11px; letter-spacing: .13em; font-weight: 700; color: #8d5b45; }
.mkt-tabs { display: flex; gap: 24px; padding: 0; border-bottom: 1px solid var(--line, #dfe6e2); overflow-x: auto; }
.mkt-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 12px 0; color: var(--muted, #61737a); font: inherit; font-size: .85rem; font-weight: 600; white-space: nowrap; cursor: pointer; border-radius: 0; }
.mkt-tabs button.active { color: var(--ink, #263238); border-bottom-color: var(--brand, #ad442e); }
.mkt-top-actions > .mkt-tabs { flex: 1; min-width: 0; }
.mkt-top-actions > .primary-button { flex-shrink: 0; }
.mkt-kpis { margin-bottom: 24px; }
.mkt-kpis .metric-card { min-height: 128px; }
.mkt-kpis .metric-card strong { display: block; margin: 10px 0; font-size: 32px; }
.mkt-list-toolbar { margin: 8px 0 20px; justify-content: flex-start; }
.mkt-list-toolbar label { min-width: 200px; flex: 1; max-width: 420px; }
.mkt-workspace label > span, .mkt-dialog label > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #53636b; }
.mkt-workspace input, .mkt-workspace select, .mkt-workspace textarea, .mkt-dialog input:not([type=checkbox]), .mkt-dialog select, .mkt-dialog textarea { width: 100%; min-width: 0; border: 1px solid #cbd6d1; border-radius: 8px; padding: 11px 12px; font: inherit; background: #fff; color: #263b42; }
.mkt-dialog textarea, .mkt-workspace textarea { resize: vertical; }
.mkt-action-list { display: grid; gap: 12px; }
.mkt-action-card { display: flex; align-items: center; gap: 24px; padding: 25px; border: 1px solid #dfe6e2; border-radius: 12px; background: white; }
.mkt-card-date { display: grid; gap: 6px; min-width: 82px; padding: 15px; text-align: center; background: #f5f0e9; border-radius: 10px; color: #8a563a; }
.mkt-card-date strong { font-size: 22px; }.mkt-card-date span { font-size: 11px; }
.mkt-card-copy { flex: 1; min-width: 0; }.mkt-card-copy h3 { margin: 10px 0 6px; }.mkt-card-copy p { margin: 0 0 8px; color: #61737a; }.mkt-card-copy small { color: #61737a; }
.mkt-card-meta { justify-content: flex-start; font-size: 12px; color: #61737a; }.mkt-card-points { display: grid; gap: 8px; text-align: right; font-size: 14px; }.mkt-card-points small { color: #61737a; }
.mkt-title-button { text-align: left; border: 0; background: none; padding: 0; color: #263b42; font: inherit; cursor: pointer; }.mkt-title-button:hover { text-decoration: underline; }
.mkt-empty { border: 1px dashed #d6dfda; border-radius: 12px; background: #fff; text-align: center; padding: 48px 24px; }.mkt-empty p { max-width: 560px; margin: 10px auto; color: #6a7a81; line-height: 1.6; }.mkt-empty-mark { color: #b74c34; font-size: 32px; }.mkt-empty h3 { font-size: 21px; margin: 10px 0; }
.mkt-dialog { width: min(1120px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #dbe3df; border-radius: 16px; color: #263b42; box-shadow: 0 24px 90px #122d3333; }
.mkt-dialog::backdrop { background: #15252c75; backdrop-filter: blur(3px); }
.mkt-dialog-header, .mkt-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 30px; background: white; }
.mkt-dialog-header { border-bottom: 1px solid #dfe6e2; position: sticky; top: 0; z-index: 3; }.mkt-dialog-header h3 { margin: 4px 0 0; font-size: 24px; }.mkt-dialog-header .eyebrow { margin: 0; }
.mkt-dialog-footer { border-top: 1px solid #dfe6e2; position: sticky; bottom: 0; z-index: 3; }.mkt-dialog-footer p { margin: 0; color: #9d402d; font-size: 13px; flex: 1; }
.mkt-dialog-body { padding: 28px 30px; }.mkt-dialog form { display: grid; gap: 20px; }.mkt-dialog fieldset { margin: 16px 0 0; padding: 24px; border: 1px solid #dfe6e2; border-radius: 12px; min-width: 0; }.mkt-dialog legend { font-size: 17px; font-weight: 650; padding: 0 10px; }.mkt-dialog legend b { color: #ad4b33; font-size: 12px; margin-right: 9px; }
.mkt-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }.mkt-span-2 { grid-column: 1 / -1; }.mkt-form-intro p, .mkt-note { font-size: 13px; color: #6b7b82; line-height: 1.6; }.mkt-check { display: flex !important; align-items: center; gap: 10px; cursor: pointer; }.mkt-check input { width: 17px; height: 17px; flex-shrink: 0; accent-color: #ae4731; }.mkt-check span { margin: 0 !important; }.mkt-check small { color: #6b7b82; font-weight: 400; }.mkt-dialog fieldset > .mkt-check { margin-top: 22px; }
.mkt-weekdays { display: flex; flex-wrap: wrap; gap: 10px; }.mkt-weekdays label { display: flex; align-items: center; gap: 7px; background: #f1f4f2; border-radius: 7px; padding: 9px; }.mkt-weekdays input { width: 16px; height: 16px; accent-color: #ae4731; }
.mkt-people-picker { max-height: 220px; overflow: auto; border: 1px solid #dfe6e2; border-radius: 8px; padding: 12px; margin-top: 8px; display: grid; gap: 12px; }
.mkt-map-search { display: flex; gap: 12px; align-items: end; margin: 20px 0 12px; }.mkt-map-search label { flex: 1; }.mkt-map { height: 360px; border: 1px solid #d6dfda; border-radius: 10px; background: #edf2ee; overflow: hidden; }.mkt-map-offline { display: grid; place-content: center; text-align: center; height: 100%; max-width: 520px; margin: auto; padding: 24px; color: #586e64; }.mkt-map-offline > span { font-size: 48px; margin-bottom: 16px; }.mkt-map-offline p { font-size: 14px; line-height: 1.65; }
.mkt-place { text-align: left; display: grid; width: 100%; background: #fff; padding: 14px; border: 1px solid #dce3df; cursor: pointer; }.mkt-place span { color: #6a7a81; margin-top: 5px; }.mkt-map-tools { justify-content: flex-start; margin: 18px 0; }
.mkt-checkpoint { border: 1px solid #dce3df; border-radius: 10px; padding: 16px; margin: 14px 0; }.mkt-point-heading { display: flex; gap: 12px; align-items: center; }.mkt-point-heading strong { color: #ac472f; background: #f8eee9; border-radius: 50%; width: 30px; height: 30px; display: grid; place-content: center; flex-shrink: 0; }.mkt-point-coords { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 15px 0; font-size: 12px; }.mkt-proof-options { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; font-size: 12px; }.mkt-area-point { display: flex; align-items: end; gap: 12px; margin: 10px 0; font-size: 12px; }.mkt-area-point label { flex: 1; }.mkt-concentration { padding: 16px 0; }.mkt-concentration summary { cursor: pointer; margin-bottom: 14px; }
.mkt-reward-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.mkt-reward-block { background: #f6f7f4; padding: 20px; border-radius: 10px; }.mkt-reward-block > .mkt-check { margin-bottom: 20px; }.mkt-reward-block .mkt-form-grid { gap: 14px; }.mkt-reward-block p { font-size: 13px; line-height: 1.6; color: #6c7c83; }
.mkt-detail-intro { display: flex; gap: 12px; align-items: center; color: #61737a; }.mkt-detail-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #dce3df; border-radius: 10px; margin: 24px 0; }.mkt-detail-facts > div { display: grid; align-content: start; gap: 10px; padding: 20px; }.mkt-detail-facts > div + div { border-left: 1px solid #dce3df; }.mkt-detail-facts small,.mkt-detail-facts span { font-size: 12px; color: #61737a; }.mkt-briefing { border-left: 3px solid #bd6549; padding: 4px 0 4px 20px; margin-bottom: 24px; }.mkt-briefing p { white-space: pre-wrap; line-height: 1.65; }.mkt-detail-controls { justify-content: flex-start; margin-bottom: 26px; }
.mkt-table { width: 100%; border-collapse: collapse; }.mkt-table th,.mkt-table td { padding: 18px; border-bottom: 1px solid #dce3df; text-align: center; font-size: 14px; }.mkt-table th { color: #61737a; background: #f4f7f5; font-weight: 600; }.mkt-table th:first-child,.mkt-table td:first-child { text-align: left; }.mkt-table small { display: block; margin-top: 5px; color: #61737a; }.mkt-log { border-bottom: 1px solid #dce3df; padding: 20px 0; }.mkt-log p { white-space: pre-wrap; line-height: 1.6; }.mkt-log pre,.mkt-report-data pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }.mkt-proof-photo { max-width: 100%; max-height: 450px; display: block; margin: 20px auto; border-radius: 10px; }
.mkt-settings { padding: 28px; }.mkt-settings h3 { margin-top: 0; }.mkt-settings > .primary-button { margin-top: 24px; }.mkt-approval-setting { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 24px 0; padding: 24px; border-radius: 12px; background: #f5f0e9; }.mkt-approval-setting select { max-width: 130px; }.mkt-approval-setting p { font-size: 13px; color: #6b7b82; max-width: 640px; line-height: 1.6; }.mkt-integration-strip { display: grid; grid-template-columns: repeat(3,1fr); margin: 20px 0 30px; gap: 12px; }.mkt-integration-strip > div { display: grid; justify-items: start; gap: 12px; background: #fff; padding: 22px; border: 1px solid #dce3df; border-radius: 10px; }
@media(max-width:1000px) { .mkt-action-card { gap: 15px; padding: 20px; flex-wrap: wrap; }.mkt-card-points { margin-left: auto; }.mkt-reward-columns { grid-template-columns: 1fr; } }
@media(max-width:650px) { .mkt-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }.mkt-dialog-header,.mkt-dialog-footer { padding: 16px; }.mkt-dialog-header h3 { font-size: 20px; }.mkt-dialog-body { padding: 16px; }.mkt-dialog fieldset { padding: 16px; }.mkt-form-grid { grid-template-columns: 1fr; }.mkt-point-coords { grid-template-columns: 1fr 1fr; }.mkt-map { height: 260px; }.mkt-card-date { display: flex; align-items: baseline; flex-basis: 100%; justify-content: flex-start; gap: 6px; padding: 9px 12px; text-align: left; }.mkt-card-date strong,.mkt-card-date span { font-size: 13px; }.mkt-card-date strong::after { content: " até"; font-weight: 400; }.mkt-card-copy { flex-basis: 100%; }.mkt-card-points { margin-left: 0; text-align: left; }.mkt-detail-facts { grid-template-columns: 1fr; }.mkt-detail-facts > div + div { border-left: 0; border-top: 1px solid #dce3df; }.mkt-integration-strip { grid-template-columns: 1fr; }.mkt-approval-setting { padding: 16px; gap: 15px; }.mkt-area-point { flex-wrap: wrap; }.mkt-map-tools { gap: 8px; }.mkt-map-tools button { font-size: 12px; }.mkt-dialog-footer { flex-wrap: wrap; }.mkt-dialog-footer p { flex-basis: 100%; }.mkt-top-actions .primary-button { width: 100%; }.mkt-kpis { grid-template-columns: 1fr 1fr; }.mkt-kpis .metric-card { min-height: 110px; padding: 16px; }.mkt-table td,.mkt-table th { padding: 12px; } }

/* Campaign coverage: real field density on the Google basemap. */
#mktCoverageHost { margin: 0 0 28px; }
.mkt-coverage-panel { overflow: hidden; border: 1px solid #dce3df; border-radius: 14px; background: #fff; }
.mkt-coverage-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; }.mkt-coverage-header h3 { margin: 5px 0; font-size: 22px; }.mkt-coverage-header p { margin: 0; font-size: 13px; color: #697b82; }.mkt-coverage-header .eyebrow { font-size: 10px; color: #8d5b45; }
.mkt-map-filters { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr .8fr .8fr auto; gap: 12px; align-items: end; padding: 0 24px 20px; }.mkt-map-filters label { min-width: 0; }.mkt-map-filters input,.mkt-map-filters select { padding: 9px; font-size: 12px; }
.mkt-map-result-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: #f6f8f6; border-top: 1px solid #e1e7e3; border-bottom: 1px solid #e1e7e3; }.mkt-map-result-metrics div { padding: 16px 24px; display: grid; gap: 6px; }.mkt-map-result-metrics span { font-size: 12px; color: #61737a; }.mkt-map-result-metrics strong { font-size: 24px; color: #294a41; }
.mkt-map-canvas-wrap { position: relative; }.mkt-coverage-map { height: 520px; background: #edf2ee; }.mkt-map-switches { position: absolute; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; left: 16px; right: 65px; top: 16px; width: fit-content; max-width: calc(100% - 80px); padding: 12px 14px; background: #ffffffef; box-shadow: 0 2px 10px #263b4220; border-radius: 9px; font-size: 12px; }.mkt-map-switches label { display: flex; align-items: center; gap: 6px; cursor: pointer; }.mkt-map-switches input { width: 15px; height: 15px; accent-color: #ad4b33; }.mkt-map-switches button { padding: 0; border: 0; border-left: 1px solid #d6dfda; padding-left: 12px; background: none; cursor: pointer; color: #345348; font: inherit; font-weight: 600; }
.mkt-map-legend { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 14px 24px; border-top: 1px solid #e1e7e3; font-size: 11px; color: #61737a; }.mkt-map-legend > div { display: flex; gap: 8px; align-items: center; }.mkt-map-legend > label { display: flex; gap: 8px; align-items: center; }.mkt-map-legend input { width: 80px; padding: 0; accent-color: #ad4b33; }.mkt-active-dot,.mkt-history-dot { display: inline-block; width: 9px; height: 9px; background: #af482f; border-radius: 50%; }.mkt-history-dot { background: #607a91; margin-left: 8px; }.mkt-heat-legend i { width: 85px; height: 7px; border-radius: 8px; background: linear-gradient(90deg,#2563eb,#0cb5bd,#9fcd3e,#ffb928,#e43924); }
.mkt-map-caption { padding: 0 24px; line-height: 1.6; font-size: 12px; color: #61737a; }.mkt-map-campaigns { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); padding: 0 24px 20px; gap: 12px; }.mkt-map-campaigns > div { display: grid; gap: 6px; border-left: 2px solid #c1cfc8; padding-left: 12px; font-size: 12px; }.mkt-map-campaigns small { color: #61737a; }
.mkt-google-pin { background: #af482f; color: #fff; font-size: 12px; font-weight: 700; width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 5px #172e3255; }.mkt-google-pin.past { background: #607a91; }.mkt-google-pin.concentration { background: #345d4a; border-radius: 7px; }.mkt-map-info { max-width: 280px; padding: 6px; font: 13px system-ui,sans-serif; color: #263b42; }.mkt-map-info > small { color: #61737a; font-size: 10px; }.mkt-map-info h4 { font-size: 17px; margin: 8px 0; }.mkt-map-info > div { display: flex; gap: 10px; justify-content: space-between; padding: 7px 0; border-top: 1px solid #e1e7e3; }.mkt-map-info > button { margin-top: 14px; }
@media(max-width:1050px) { .mkt-map-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }.mkt-map-result-metrics div { padding: 14px 16px; } }
@media(max-width:650px) { .mkt-coverage-header { padding: 18px; align-items: flex-start; }.mkt-coverage-header h3 { font-size: 19px; }.mkt-map-filters { grid-template-columns: 1fr 1fr; padding: 0 16px 16px; }.mkt-map-result-metrics { grid-template-columns: 1fr 1fr; }.mkt-coverage-map { height: 430px; }.mkt-map-switches { left: 10px; top: 10px; right: 45px; max-width: calc(100% - 60px); padding: 10px; gap: 8px; font-size: 11px; }.mkt-map-switches button { padding-left: 8px; }.mkt-map-legend { padding: 14px; }.mkt-map-caption { padding: 0 16px; }.mkt-map-campaigns { padding: 0 16px 18px; }.mkt-coverage-map .mkt-map-offline { padding-top: 110px; }.mkt-map-result-metrics strong { font-size: 22px; } }
.mkt-face-comparison { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; }.mkt-face-comparison > img { width: 100%; }.mkt-face-comparison figure { margin: 0; }.mkt-face-comparison figcaption { text-align: center; font-size: 12px; color: #61737a; }
@media(max-width:650px) { .mkt-face-comparison { grid-template-columns: 1fr; } }

.mkt-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin: 20px 0; color: #61737a; font-size: 13px; }
.mkt-pagination > div { display: flex; gap: 8px; }
.mkt-list-toolbar { align-items: end; }
.mkt-list-toolbar label { min-width: 150px; }
.mkt-list-toolbar button { align-self: end; }
.mkt-map-switches button:disabled, .mkt-map-switches label:has(input:disabled), .mkt-map-legend label:has(input:disabled) { opacity: .5; cursor: default; }

/* Reuse campaign coverage inside a challenge without changing the overview. */
.mkt-detail-map { margin: 24px 0; }
.mkt-detail-map .mkt-map-filters { grid-template-columns: repeat(2,minmax(0,1fr)) auto; gap: 12px; }
.mkt-detail-map .mkt-coverage-map { height: 360px; }
.mkt-detail-map .mkt-map-legend input[type=range] { width: 80px; padding: 0; }
.mkt-detail-map [data-map-campaigns][hidden] { display: none; }
.mkt-map-query { border-top: 1px solid var(--line, #dfe5e3); }
.mkt-map-query > summary, .mkt-map-breakdown > summary { cursor: pointer; padding: 14px 24px; font-size: 13px; font-weight: 600; }
.mkt-map-query > summary span { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 12px; }
.mkt-map-query .mkt-map-filters { padding-top: 4px; }
.mkt-map-breakdown { border-top: 1px solid var(--line, #dfe5e3); }
.mkt-map-breakdown[hidden] { display: none; }
.mkt-map-unavailable .mkt-coverage-map { height: auto; min-height: 0; background: #fafbf9; }
.mkt-map-unavailable .mkt-map-offline { display: block; height: auto; max-width: none; padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line, #dfe5e3); }
.mkt-map-unavailable .mkt-map-offline strong { font-size: 13px; color: var(--text, #263b42); }
.mkt-map-unavailable .mkt-map-offline p { margin: 6px 0 0; font-size: 12px; }
.mkt-map-unavailable .mkt-map-switches, .mkt-map-unavailable .mkt-map-legend { display: none; }
.mkt-map-result-metrics strong, .mkt-kpis strong { font-variant-numeric: tabular-nums; }
@media(max-width:650px) {
  .mkt-top-actions > .mkt-tabs { flex-basis: 100%; }
  .mkt-map-query > summary, .mkt-map-breakdown > summary { padding: 14px 16px; }
  .mkt-map-query > summary span { display: block; margin: 5px 0 0 16px; }
  .mkt-map-unavailable .mkt-map-offline { padding: 16px; }
  .mkt-detail-map .mkt-map-filters { grid-template-columns: 1fr 1fr; }
  .mkt-detail-map .mkt-map-filters button { grid-column: 1 / -1; }
  .mkt-detail-map .mkt-coverage-map { height: 430px; }
}

/* Permission controls retain their size when the description wraps. */
.permission-check input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
}
.permission-check { align-items: flex-start; }
.permission-check span { min-width: 0; line-height: 1.5; }
.roleta-periodo-times small, .user-modal-grid small { color: var(--muted); line-height: 1.5; font-weight: 400; }
.roleta-periodo-times label { align-content: start; }
.roleta-schedule-example { margin: 16px 0; padding: 16px; background: var(--bg-soft, #f4f6f9); border-radius: 12px; font-size: 13px; line-height: 1.6; }
.roleta-schedule-example summary { cursor: pointer; font-weight: 600; }
.roleta-schedule-example ol { padding-left: 20px; margin: 12px 0; }
.roleta-schedule-example p { color: var(--muted); margin: 8px 0 0; }
.roleta-next-info { color: var(--brand); font-size: 12px; font-weight: 600; cursor: default; }
.user-scope-fields { display: grid; gap: 12px; }

.roleta-periodo-times { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; }
.roleta-periodo-times small { font-size: 12px; }
@media (max-width: 700px) {
  .roleta-periodo-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .roleta-periodo-times { grid-template-columns: 1fr; }
}
