/* Painel vendedor novo - compacto, completo, layout distinto do classico */
/* Tokens compartilhados com ponto-app / conta-app / mg-app / lgpd-app / cfg-app (mesmo modelo visual). */
.painel-vendedor-page,
.ponto-app,
.conta-app,
.mg-app,
.lgpd-app,
.cfg-app,
.suporte-app,
.escala-app,
.inverno-app,
.semanal-app {
  --nx-blue: #0061FF;
  --nx-cyan: #06B6D4;
  --nx-ink: #102A43;
  --nx-muted: #64748B;
  --nx-line: #D7E4F4;
  --nx-bg: #F3F7FC;
  --nx-ok: #22C55E;
  --nx-bad: #F43F5E;
  --nx-ok-soft: #ECFDF5;
  --nx-bad-soft: #FFF1F2;
  --nx-warn: #D97706;
  --nx-radius: 12px;
  --nx-shadow: 0 4px 14px rgba(16, 42, 67, 0.05);
}

.painel-vendedor-page,
.ponto-app,
.conta-app,
.mg-app,
.lgpd-app,
.cfg-app,
.suporte-app,
.escala-app,
.inverno-app,
.semanal-app,
.painel-vendedor-page .app-shell,
.ponto-app .app-shell,
.conta-app .app-shell,
.mg-app .app-shell,
.lgpd-app .app-shell,
.cfg-app .app-shell,
.suporte-app .app-shell,
.escala-app .app-shell,
.inverno-app .app-shell,
.semanal-app .app-shell,
.painel-vendedor-page .page-shell,
.ponto-app .page-shell,
.conta-app .page-shell,
.mg-app .page-shell,
.lgpd-app .page-shell,
.cfg-app .page-shell,
.suporte-app .page-shell,
.escala-app .page-shell,
.inverno-app .page-shell,
.semanal-app .page-shell,
.painel-vendedor-page .nx-main,
.ponto-app .nx-main,
.conta-app .nx-main,
.mg-app .nx-main,
.lgpd-app .nx-main,
.cfg-app .nx-main,
.suporte-app .nx-main,
.escala-app .nx-main,
.inverno-app .nx-main,
.semanal-app .nx-main,
.ponto-app .app-main,
.conta-app .app-main,
.mg-app .app-main,
.lgpd-app .app-main,
.cfg-app .app-main,
.suporte-app .app-main,
.escala-app .app-main,
.inverno-app .app-main,
.semanal-app .app-main {
  background: var(--nx-bg) !important;
  color: var(--nx-ink);
}

.nx-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 12px 24px;
}

.is-hidden { display: none !important; }
.is-ok { color: var(--nx-ok) !important; }
.is-bad { color: var(--nx-bad) !important; }

.nx-alert {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #FEE2E2;
  color: var(--nx-bad);
  font-size: 12px;
  font-weight: 600;
}

.nx-empty {
  margin: 16px 0;
  text-align: center;
  color: var(--nx-muted);
  font-size: 12px;
}

.nx-k {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-muted);
}

.nx-box {
  background: #fff;
  border: 1.5px solid #C5D7EE;
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  padding: 10px;
}

.nx-sec {
  margin-bottom: 8px;
}

.nx-sec--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nx-sec h3 {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.nx-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  background: #DBEAFE;
  color: #1D4ED8;
  white-space: nowrap;
}

.nx-pill.is-success { background: var(--nx-ok-soft); color: var(--nx-ok); }
.nx-pill.is-danger { background: var(--nx-bad-soft); color: var(--nx-bad); }
.nx-pill.is-warning { background: #EEF5FF; color: #0061FF; }
.nx-pill.is-neutral,
.nx-pill.is-info,
.nx-pill.is-primary { background: #DBEAFE; color: #1D4ED8; }

.nx-delta {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 7px;
  background: #EEF2FF;
  color: #4338CA;
  white-space: nowrap;
  line-height: 1.2;
  border: 1px solid transparent;
}

.nx-delta.is-positive,
.nx-delta.is-success,
.nx-delta.is-up {
  background: var(--nx-ok-soft);
  color: var(--nx-ok);
  border-color: color-mix(in srgb, var(--nx-ok) 28%, #fff);
}
.nx-delta.is-negative,
.nx-delta.is-danger,
.nx-delta.is-down {
  background: var(--nx-bad-soft);
  color: var(--nx-bad);
  border-color: color-mix(in srgb, var(--nx-bad) 28%, #fff);
}
.nx-delta.is-neutral {
  background: #F8FAFC;
  color: var(--nx-muted);
  border-color: #E2E8F0;
}

.nx-prog {
  height: 6px;
  border-radius: 999px;
  background: #E8EEF7;
  overflow: hidden;
}

.nx-prog--sm { height: 4px; margin-top: 4px; }

.nx-prog > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nx-cyan), var(--nx-blue));
}

.nx-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: #EAF1FB;
}

.nx-seg button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--nx-muted);
  cursor: pointer;
}

.nx-seg button.is-active {
  background: #fff;
  color: var(--nx-blue);
}

.nx-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #EFF6FF;
  color: #0061FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #BFDBFE;
  flex-shrink: 0;
}

.nx-ico svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Top bar - mesmo idioma visual dos cards */
.nx-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #C5D7EE;
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.05);
}

.nx-bar__who {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.nx-bar__title {
  min-width: 0;
}

.nx-bar__who-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-top: 1px;
}

.nx-bar__who strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
  line-height: 1.15;
}

.nx-bar__role {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #DBEAFE;
  background: #EFF6FF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1D4ED8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-bar__chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nx-bar__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #F5F8FC;
  border: 1px solid #E2EAF4;
  font-size: 11px;
  font-weight: 650;
  color: #475569;
  line-height: 1.2;
  white-space: nowrap;
}

.nx-bar__chip-ico {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  flex-shrink: 0;
}

.nx-bar__chip-ico svg {
  width: 13px;
  height: 13px;
  display: block;
}

.nx-bar__filters {
  display: none;
}

.nx-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.nx-modal[hidden] {
  display: none !important;
}

.nx-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 42, 67, 0.42);
  cursor: pointer;
}

.nx-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid #C5D7EE;
  box-shadow: 0 22px 48px rgba(16, 42, 67, 0.18);
}

.nx-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.nx-modal__head h3 {
  margin: 1px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
}

.nx-modal__close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D7E4F4;
  border-radius: 9px;
  background: #F5F8FC;
  color: #64748B;
  cursor: pointer;
}

.nx-modal__close:hover {
  background: #EEF5FF;
  color: #0F172A;
}

.nx-modal__form {
  display: grid;
  gap: 10px;
}

.nx-modal__field {
  display: grid;
  gap: 5px;
}

.nx-modal__field > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94A3B8;
}

.nx-modal__field select,
.nx-modal__field input[type="date"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #D7E4F4;
  border-radius: 10px;
  background: #F8FBFF;
  color: #0F172A;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.nx-modal__field select:focus,
.nx-modal__field input[type="date"]:focus {
  outline: none;
  border-color: #93C5FD;
  box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.12);
  background: #fff;
}

.nx-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.nx-modal__btn {
  appearance: none;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #D7E4F4;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nx-modal__btn.is-ghost {
  background: #fff;
  color: #475569;
}

.nx-modal__btn.is-ghost:hover {
  background: #F5F8FC;
}

.nx-modal__btn.is-primary {
  background: #0061FF;
  border-color: #0061FF;
  color: #fff;
}

.nx-modal__btn.is-primary:hover {
  background: #0047C2;
  border-color: #0047C2;
}

body.nx-modal-open {
  overflow: hidden;
}

.nx-select {
  position: relative;
  min-width: 128px;
}

.nx-select__native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nx-select__btn,
.nx-date input {
  height: 34px;
  border: 1px solid #D7E4F4;
  border-radius: 10px;
  background: #F5F8FC;
  color: #0F172A;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.nx-select__btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  cursor: pointer;
}

.nx-date input {
  width: 138px;
  padding: 0 10px;
  color-scheme: light;
}

.nx-select__btn:hover,
.nx-date input:hover {
  background: #EEF5FF;
  border-color: #C5D7EE;
}

.nx-select.is-open .nx-select__btn,
.nx-date input:focus {
  outline: none;
  background: #fff;
  border-color: #0061FF;
  box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.12);
}

.nx-select__value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: inherit;
  color: inherit;
}

.nx-select__chev {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-right: 1.5px solid #64748B;
  border-bottom: 1.5px solid #64748B;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.7;
  transition: transform .15s ease;
}

.nx-select.is-open .nx-select__chev {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nx-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #E2EAF4;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.12);
}

.nx-select__menu[hidden] {
  display: none;
}

.nx-select__menu li {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}

.nx-select__menu li:hover {
  background: #F5F8FC;
  color: #0F172A;
}

.nx-select__menu li.is-selected {
  background: #EEF5FF;
  color: #0061FF;
  font-weight: 700;
}

.nx-date {
  display: inline-flex;
  align-items: center;
}

.nx-date input::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
}

.nx-bar__link {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #D7E4F4;
  background: #fff;
  color: #0061FF;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.nx-bar__link:hover {
  background: #EEF5FF;
  border-color: #C5D7EE;
}

.nx-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nx-bar__tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nx-bar__icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nx-icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D7E4F4;
  border-radius: 10px;
  background: #F5F8FC;
  color: #334155;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.nx-icon-btn:hover,
.nx-icon-btn[aria-expanded="true"],
.nx-icon-btn[aria-pressed="true"] {
  background: #EEF5FF;
  border-color: #C5D7EE;
  color: #0061FF;
}

.nx-icon-btn.has-alerts {
  color: var(--nx-bad);
}

.nx-icon-btn.has-alerts:hover,
.nx-icon-btn.has-alerts[aria-expanded="true"] {
  background: var(--nx-bad-soft);
  border-color: color-mix(in srgb, var(--nx-bad) 28%, #E2EAF4);
  color: var(--nx-bad);
}

.nx-icon-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--nx-bad);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.nx-notify {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(280px, 78vw);
  padding: 10px;
  border: 1px solid #E2EAF4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.12);
}

.nx-notify[hidden] {
  display: none !important;
}

.nx-notify__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.nx-notify__head strong {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
}

.nx-notify__head span {
  font-size: 10px;
  font-weight: 700;
  color: #0061FF;
  background: #EEF5FF;
  border-radius: 999px;
  padding: 2px 7px;
}

.nx-notify__item {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  background: #F5F8FC;
  text-decoration: none;
  color: inherit;
}

.nx-notify__item:hover {
  background: #EEF5FF;
}

.nx-notify__item strong {
  font-size: 12px;
  color: #0F172A;
}

.nx-notify__item small {
  font-size: 11px;
  color: #64748B;
}

.nx-notify__empty {
  padding: 12px 8px;
  font-size: 12px;
  color: #94A3B8;
  text-align: center;
}

.nx-user {
  position: relative;
}

.nx-user__btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 4px;
  border: 1px solid #D7E4F4;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.nx-user__btn:hover,
.nx-user__btn[aria-expanded="true"] {
  background: #F5F9FF;
  border-color: #C5D7EE;
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.06);
}

.nx-user__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2F7BFF 0%, #0061FF 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nx-user__avatar--lg {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.nx-user__avatar.has-photo {
  background: #E2EAF4;
  box-shadow: none;
}

.nx-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nx-user__copy {
  display: grid;
  gap: 1px;
  text-align: left;
  min-width: 0;
  max-width: 132px;
}

.nx-user__copy strong {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-user__copy small {
  font-size: 10px;
  font-weight: 650;
  color: #64748B;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

.nx-user__chev {
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-right: 1.5px solid #94A3B8;
  border-bottom: 1.5px solid #94A3B8;
  transform: rotate(45deg) translate(-1px, -2px);
  flex-shrink: 0;
  transition: transform .15s ease;
}

.nx-user__btn[aria-expanded="true"] .nx-user__chev {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nx-user__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(212px, calc(100vw - 24px));
  padding: 5px;
  border: 1.5px solid #C5D7EE;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 42, 67, 0.14);
}

.nx-user__panel[hidden] {
  display: none !important;
}

.nx-user__card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin-bottom: 3px;
  border-radius: 10px;
  background: linear-gradient(180deg, #F5F9FF 0%, #EEF4FB 100%);
  border: 1px solid #E2EAF6;
}

.nx-user__card-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.nx-user__card-copy strong {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-user__card-copy small {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  color: #475569;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #D7E4F4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-user__nav {
  display: grid;
  gap: 1px;
  padding: 1px;
}

.nx-user__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background-color .12s ease, color .12s ease;
}

.nx-user__item-ico {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #F1F5F9;
  color: #64748B;
  flex-shrink: 0;
  transition: background-color .12s ease, color .12s ease;
}

.nx-user__item-ico svg {
  width: 13px;
  height: 13px;
  display: block;
}

.nx-user__item:hover {
  background: #F5F9FF;
  color: #0F172A;
}

.nx-user__item:hover .nx-user__item-ico {
  background: #E8F1FF;
  color: #0061FF;
}

.nx-user__item.is-danger {
  color: var(--nx-bad);
}

.nx-user__item.is-danger .nx-user__item-ico {
  background: var(--nx-bad-soft);
  color: var(--nx-bad);
}

.nx-user__item.is-danger:hover {
  background: var(--nx-bad-soft);
  color: var(--nx-bad);
}

.nx-user__item.is-danger:hover .nx-user__item-ico {
  background: #fff;
  color: var(--nx-bad);
}

.nx-user__sep,
.nx-user__foot {
  margin: 3px 1px 0;
  padding-top: 3px;
  border-top: 1px solid #EEF3F9;
}

.nx-user__sep {
  height: 0;
  background: transparent;
}

.nx-user__foot {
  display: grid;
}

@media (max-width: 720px) {
  .nx-user__copy {
    display: none;
  }

  .nx-user__btn {
    padding: 0 8px 0 4px;
    height: 34px;
  }
}

/* Metas + KPIs - colunas independentes (sem buraco entre linhas) */
.nx-goals {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 8px;
  margin-bottom: 8px;
  align-items: start;
}

.nx-goals__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.nx-goals__col--side .nx-store {
  order: -1;
}

.nx-goal,
.nx-month,
.nx-ops,
.nx-store {
  --goal-p: 0;
  --goal-accent: #0061FF;
  background: #fff;
  border: 1.5px solid #C5D7EE;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.05);
  padding: 12px;
}

.nx-goal__main,
.nx-month__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.nx-goal__intro,
.nx-month__intro {
  min-width: 0;
}

.nx-goal__insight {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-self: center;
  width: 100%;
}

.nx-goal__insight > * {
  display: inline;
  font-style: normal;
  line-height: 1.2;
}

.nx-goal__insight > * + *::before {
  content: "\00B7";
  margin: 0 7px;
  color: #CBD5E1;
  font-weight: 600;
}

.nx-goal__insight span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #94A3B8;
}

.nx-goal__insight strong {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0F172A;
}

.nx-goal__insight em {
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
}

.nx-goal__insight--ok strong { color: var(--nx-ok); }
.nx-goal__insight--warn strong { color: #0061FF; }
.nx-goal__insight--bad strong { color: var(--nx-bad); }
.nx-goal__insight--neutral strong { color: #334155; }

.nx-goal__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.nx-goal__title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #0F172A;
}

.nx-month__pct {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

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

.nx-month__facts .nx-ops-card__val {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #0F172A;
  white-space: nowrap;
}

.nx-month__facts .nx-ops-card--bad .nx-ops-card__val {
  color: var(--nx-bad);
}

.nx-month__note {
  display: block;
  margin: 8px 0 0;
  font-size: 10px;
  color: #94A3B8;
}

/* Score com barras (sem gauge) */
.nx-score {
  --score-p: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 128px;
  min-width: 128px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #F5F8FC;
  border: 1px solid #E2EAF4;
  overflow: hidden;
  transition: background-color .18s ease, border-color .18s ease;
}

.nx-score:hover {
  background: #EEF3FA;
  border-color: #D5E1F0;
}

.nx-score--sm {
  min-width: 78px;
  width: 78px;
  padding: 6px 8px;
}

.nx-score__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
  min-width: 0;
}

.nx-score__top span {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-score__top strong {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0061FF;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nx-score--sm .nx-score__top strong {
  font-size: 14px;
}

.nx-score.is-done .nx-score__top strong {
  color: var(--nx-ok);
}

.nx-score__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.nx-score--sm .nx-score__bars {
  height: 14px;
  gap: 2px;
}

.nx-score__bars > i {
  flex: 1;
  min-width: 0;
  height: calc(40% + (var(--i) * 6%));
  border-radius: 999px;
  background: #D8E4F2;
  transform: scaleY(0.35);
  transform-origin: bottom center;
  opacity: 0.45;
  transition:
    background-color .25s ease,
    transform .45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .35s ease;
  transition-delay: calc(var(--i) * 35ms);
}

.nx-score.is-ready .nx-score__bars > i.is-on {
  background: linear-gradient(180deg, #3D87FF, #0061FF);
  transform: scaleY(1);
  opacity: 1;
}

.nx-score.is-done.is-ready .nx-score__bars > i.is-on {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nx-ok) 55%, #fff), var(--nx-ok));
}

.nx-score:hover .nx-score__bars > i.is-on {
  filter: brightness(1.08);
}

.nx-goal__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.nx-fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: #F4F8FF;
  transition: background-color .18s ease;
}

.nx-fact:has(.nx-fact__ico--bad) { background: var(--nx-bad-soft); }
.nx-fact:has(.nx-fact__ico--cyan) { background: #F0FBFD; }
.nx-fact:has(.nx-fact__ico--violet) { background: #F7F4FF; }

.nx-fact:hover { background: color-mix(in srgb, #0061FF 8%, #fff); }
.nx-fact:has(.nx-fact__ico--bad):hover { background: color-mix(in srgb, var(--nx-bad) 8%, #fff); }
.nx-fact:has(.nx-fact__ico--cyan):hover { background: color-mix(in srgb, #0891B2 8%, #fff); }
.nx-fact:has(.nx-fact__ico--violet):hover { background: color-mix(in srgb, #7C3AED 8%, #fff); }

.nx-goal__facts .nx-fact:last-child {
  border: 0;
}

.nx-fact__ico {
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  color: #0061FF;
  box-shadow: none;
  margin-bottom: 2px;
}

.nx-fact__ico--bad { color: var(--nx-bad); }
.nx-fact__ico--cyan { color: #0891B2; }
.nx-fact__ico--violet { color: #7C3AED; }

.nx-fact__ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nx-fact__label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748B;
  line-height: 1.25;
}

.nx-fact__val {
  display: block;
  margin-top: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
  word-break: break-word;
}

.nx-ops {
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  min-height: 0;
}

.nx-ops__head {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.nx-ops__head h3 {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.nx-ops__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.nx-ops-card {
  --ops-accent: #0061FF;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #F4F8FF;
  transition: background-color .18s ease;
}

.nx-ops-card--cyan { --ops-accent: #0891B2; background: #F0FBFD; }
.nx-ops-card--violet { --ops-accent: #7C3AED; background: #F7F4FF; }
.nx-ops-card--indigo { --ops-accent: #4F46E5; background: #F4F5FF; }
.nx-ops-card--teal { --ops-accent: #0D9488; background: #F0FDFA; }
.nx-ops-card--bad { --ops-accent: var(--nx-bad); background: var(--nx-bad-soft); }

.nx-ops-card:hover {
  background: color-mix(in srgb, var(--ops-accent) 8%, #fff);
}

.nx-ops__grid .nx-ops-card:last-child {
  grid-column: 1 / -1;
}

.nx-ops-card__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  color: var(--ops-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ops-accent) 16%, transparent);
}

.nx-ops-card__ico svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nx-ops-card__meta {
  flex: 1;
  min-width: 0;
}

.nx-ops-card__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #0F172A;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-ops-card__hint {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #94A3B8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-ops-card__val {
  flex-shrink: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ops-accent);
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.nx-ops__grid .nx-ops-card:last-child .nx-ops-card__val {
  font-size: 15px;
}

/* Indicadores */
.nx-ind {
  margin-bottom: 8px;
  background: #fff;
  border: 1.5px solid #C5D7EE;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.05);
  overflow: hidden;
}

.nx-ind__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 12px 8px;
}

.nx-ind__title {
  min-width: 0;
  flex: 0 1 auto;
}

.nx-ind__insight {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3em;
  margin: 0 0 0 auto;
  max-width: min(560px, 100%);
  padding: 6px 11px;
  border-radius: 999px;
  background: #F5F8FC;
  border: 1px solid #E2EAF4;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-secondary);
  text-align: right;
  white-space: normal;
}

.nx-ind__insight span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nx-ind__insight strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0061FF;
  font-variant-numeric: tabular-nums;
}

.nx-ind__insight--ok,
.nx-ind__insight--bad,
.nx-ind__insight--blue,
.nx-ind__insight--neutral {
  background: #F5F8FC;
  border-color: #E2EAF4;
}

.nx-ind__insight--ok strong {
  color: var(--nx-ok);
}

.nx-ind__insight--bad strong {
  color: var(--nx-bad);
}

.nx-ind__insight--blue strong,
.nx-ind__insight--neutral strong {
  color: #0061FF;
}

.nx-ind__head h3 {
  margin: 1px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
}

.nx-ind__strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
  border-top: 1px solid #E2ECF7;
  background: #fff;
}

.nx-tile {
  --tile-accent: #0061FF;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 11px 10px;
  min-width: 0;
  border: 1px solid #E2EAF4;
  border-radius: 12px;
  background: #F5F8FC;
  box-shadow: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.nx-tile--blue { --tile-accent: #0061FF; }
.nx-tile--cyan { --tile-accent: #0891B2; }
.nx-tile--indigo { --tile-accent: #4F46E5; }
.nx-tile--sky { --tile-accent: #0284C7; }
.nx-tile--violet { --tile-accent: #7C3AED; }
.nx-tile--teal { --tile-accent: #0D9488; }

@media (hover: hover) and (pointer: fine) {
  .nx-tile:hover {
    background: #fff;
    border-color: color-mix(in srgb, var(--tile-accent) 32%, #D7E3F0);
    box-shadow:
      0 2px 4px rgba(15, 23, 42, 0.05),
      0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
  }

  .nx-tile:hover .nx-tile__value {
    color: var(--tile-accent);
  }

  .nx-tile:hover .nx-tile__icon {
    color: var(--tile-accent);
    background: color-mix(in srgb, var(--tile-accent) 10%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tile-accent) 24%, #fff);
  }
}

.nx-tile__icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  color: #0061FF;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #0061FF 14%, transparent);
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nx-tile__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.nx-tile--blue .nx-tile__icon {
  color: #0061FF;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #0061FF 14%, transparent);
}
.nx-tile--cyan .nx-tile__icon {
  color: #0891B2;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #0891B2 16%, transparent);
}
.nx-tile--indigo .nx-tile__icon {
  color: #4F46E5;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #4F46E5 16%, transparent);
}
.nx-tile--sky .nx-tile__icon {
  color: #0284C7;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #0284C7 16%, transparent);
}
.nx-tile--violet .nx-tile__icon {
  color: #7C3AED;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #7C3AED 16%, transparent);
}
.nx-tile--teal .nx-tile__icon {
  color: #0D9488;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #0D9488 16%, transparent);
}

.nx-tile__body {
  min-width: 0;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nx-tile__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.nx-tile__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748B;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.nx-tile__row .nx-delta {
  flex-shrink: 0;
}

.nx-tile__value {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0F172A;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nx-tile__hint {
  display: block;
  margin-top: auto;
  padding-top: 6px;
  font-size: 10px;
  color: #94A3B8;
  line-height: 1.25;
  white-space: normal;
}

.nx-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Mid */
.nx-mid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.nx-chart {
  height: 150px;
  position: relative;
}

.nx-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.nx-store-row {
  margin-bottom: 8px;
}

.nx-store {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  height: auto;
}

.nx-store.nx-box {
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.05);
}

.nx-store__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nx-store__who {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.nx-store__ico {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #F4F8FF;
  color: #0061FF;
  box-shadow: inset 0 0 0 1px rgba(0, 97, 255, 0.12);
}

.nx-store__ico svg {
  width: 16px;
  height: 16px;
}

.nx-store__who strong {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.nx-score--store {
  width: 132px;
  min-width: 132px;
  padding: 7px 9px;
}

.nx-score--store .nx-score__top strong {
  font-size: 15px;
}

.nx-store__shift {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F4F8FF;
  border: 0;
}

.nx-store__shift.is-empty {
  opacity: 0.85;
}

.nx-store__shift-ico {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  color: #0061FF;
  box-shadow: inset 0 0 0 1px rgba(0, 97, 255, 0.14);
}

.nx-store__shift-ico svg {
  width: 18px;
  height: 18px;
}

.nx-store__shift-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.nx-store__shift-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 2px;
}

.nx-store__shift-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

.nx-store__badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: #0061FF;
  box-shadow: inset 0 0 0 1px rgba(0, 97, 255, 0.14);
  white-space: nowrap;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-store__badge.is-trabalhando {
  background: var(--nx-ok-soft, #ECFDF5);
  color: var(--nx-ok);
  box-shadow: none;
}

.nx-store__badge.is-intervalo {
  background: #FFF7ED;
  color: #EA580C;
  box-shadow: none;
}

.nx-store__badge.is-previsto {
  background: #fff;
  color: #0061FF;
}

/* Categories table */
.nx-table-wrap {
  overflow-x: auto;
  margin-top: 2px;
}

.nx-cats {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}

.nx-cats thead th {
  padding: 0 8px 8px;
  border-bottom: 1px solid #E2EAF4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94A3B8;
  text-align: left;
  white-space: nowrap;
  vertical-align: bottom;
}

.nx-cats thead th.is-num,
.nx-cats td.is-num {
  text-align: right;
}

.nx-cats tbody td {
  padding: 8px;
  border-bottom: 1px solid #EEF3F9;
  vertical-align: middle;
  white-space: nowrap;
  color: #64748B;
  font-variant-numeric: tabular-nums;
}

.nx-cats tbody tr:last-child td {
  border-bottom: 0;
}

.nx-cats tbody tr[data-pv-cat]:hover td {
  background: #F8FBFF;
}

.nx-cats td.is-num {
  color: #475569;
  font-weight: 600;
}

.nx-cats .nx-cats__money-muted {
  color: #94A3B8 !important;
  font-weight: 650;
}

.nx-cats .is-bad {
  color: var(--nx-bad) !important;
  font-weight: 700;
}

.nx-cats .is-ok {
  color: var(--nx-ok) !important;
  font-weight: 700;
}

.nx-cats .nx-muted {
  color: #94A3B8;
  font-weight: 600;
}

.nx-cat-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nx-cat-name strong {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-cat-ico {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cat-c, #0061FF) 14%, #fff);
  color: var(--cat-c, #0061FF);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat-c, #0061FF) 22%, transparent);
}

.nx-cat-ico svg {
  width: 14px;
  height: 14px;
  display: block;
}

.nx-cats .nx-pill {
  font-size: 10px;
  padding: 3px 8px;
}

.nx-cat-pct {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  max-width: 96px;
}

.nx-cat-pct b {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #334155;
}

.nx-cat-track {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: #E8EEF7;
  overflow: hidden;
}

.nx-cat-track > i {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 1%);
  max-width: 100%;
  border-radius: inherit;
  background: #0061FF;
  transition: width .3s ease;
}

.nx-cat-pct.is-ok b { color: var(--nx-ok); }
.nx-cat-pct.is-mid b { color: #0061FF; }
.nx-cat-pct.is-low b { color: var(--nx-bad); }

.nx-cat-pct.is-ok .nx-cat-track > i {
  background: var(--nx-ok);
}

.nx-cat-pct.is-mid .nx-cat-track > i {
  background: #0061FF;
}

.nx-cat-pct.is-low .nx-cat-track > i {
  background: var(--nx-bad);
}

.nx-cat-pct.is-muted b,
.nx-cat-pct.is-muted.is-ok b,
.nx-cat-pct.is-muted.is-mid b,
.nx-cat-pct.is-muted.is-low b {
  color: #94A3B8 !important;
}

.nx-cat-pct.is-muted .nx-cat-track > i,
.nx-cat-pct.is-muted.is-ok .nx-cat-track > i,
.nx-cat-pct.is-muted.is-mid .nx-cat-track > i,
.nx-cat-pct.is-muted.is-low .nx-cat-track > i {
  background: #CBD5E1;
}

/* Commissions ? KPIs + ?ltimas vendas */
.nx-earn {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 8px;
  margin-top: 8px;
  align-items: start;
}

.nx-earn__main,
.nx-earn__side {
  min-width: 0;
  position: relative;
}

.nx-earn__main {
  z-index: 2;
}

.nx-earn__side {
  z-index: 1;
}

.nx-earn__main:has(.nx-earn__tip.is-open) {
  z-index: 5;
}

.nx-sales__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EEF3F9;
}

.nx-sales__head .nx-sec {
  min-width: 0;
  margin-bottom: 0;
}

.nx-sales__ticket {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  gap: 5px;
  padding: 4px;
  border-radius: 12px;
  background: #F8FBFF;
  border: 1px solid #E4EDF8;
}

.nx-sales__ticket-cmp {
  min-width: 0;
  padding: 5px 8px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #E8EEF7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.nx-sales__ticket-cmp span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94A3B8;
  line-height: 1.1;
}

.nx-sales__ticket-cmp strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #334155;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}

.nx-sales__ticket-cmp--ok strong { color: var(--nx-ok); }
.nx-sales__ticket-cmp--bad strong { color: var(--nx-bad); }
.nx-sales__ticket-cmp--neutral strong { color: #334155; }

.nx-sales__ticket-main {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 5px 9px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #E8EEF7;
}

.nx-sales__ticket-k {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7B93B0;
  line-height: 1.1;
}

.nx-sales__ticket-v {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--nx-blue);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.nx-sales__ticket-v small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--nx-blue) 72%, #64748B);
}

.nx-earn__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EEF3F9;
}

.nx-earn__titles {
  min-width: 0;
}

.nx-earn__titles h3 {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.nx-earn__titles small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #94A3B8;
}

.nx-earn__stats {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 12px;
  background: #F8FBFF;
  border: 1px solid #E4EDF8;
}

.nx-earn__insight {
  min-width: 0;
  max-width: 190px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #E8EEF7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.nx-earn__insight span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94A3B8;
}

.nx-earn__insight strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #334155;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.nx-earn__insight em {
  font-style: normal;
  font-size: 10px;
  color: #94A3B8;
}

.nx-earn__insight--ok strong { color: var(--nx-ok); }
.nx-earn__insight--warn strong { color: #0061FF; }
.nx-earn__insight--bad strong { color: var(--nx-bad); }
.nx-earn__insight--neutral strong { color: #334155; }

.nx-earn__total {
  min-width: 108px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #E8EEF7;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nx-earn__total span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94A3B8;
}

.nx-earn__total strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0061FF;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.nx-earn__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nx-earn__note {
  margin: 8px 0 0;
  padding: 7px 9px;
  border-radius: 9px;
  background: #F5F9FF;
  border: 1px solid #DCE8F6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.nx-earn__note-ico {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  color: #fff;
  background: #0061FF;
}

.nx-earn__note-body {
  min-width: 0;
}

.nx-earn__note-body strong {
  display: block;
  margin-bottom: 1px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #334155;
}

.nx-earn__note-body p {
  margin: 0;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.35;
  color: #64748B;
}

.nx-earn__note-body em {
  font-style: normal;
  font-weight: 700;
  color: #0F172A;
}

.nx-earn__kpi {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #E2EAF4;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 42, 67, 0.02);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.nx-earn__kpi:hover {
  z-index: 2;
  border-color: color-mix(in srgb, var(--earn-c, #0061FF) 28%, #E2EAF4);
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.06);
  transform: translateY(-1px);
}

.nx-earn__kpi:has(.nx-earn__tip.is-open) {
  z-index: 12;
}

.nx-earn__kpi-ico {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--earn-c, #0061FF) 10%, #fff);
  color: var(--earn-c, #0061FF);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--earn-c, #0061FF) 14%, transparent);
}

.nx-earn__kpi-ico svg {
  width: 15px;
  height: 15px;
  display: block;
}

.nx-earn__kpi-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nx-earn__kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.nx-earn__kpi .nx-pill {
  font-size: 9px;
  padding: 2px 6px;
  flex: 0 0 auto;
}

.nx-earn__kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-earn__kpi-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.nx-earn__kpi-value i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--nx-ok);
  background: var(--nx-ok-soft);
  border-radius: 999px;
  padding: 1px 5px;
}

.nx-earn__kpi-hint {
  font-size: 10px;
  color: #94A3B8;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-earn__kpi.is-ok .nx-earn__kpi-hint { color: var(--nx-ok); }
.nx-earn__kpi.is-low .nx-earn__kpi-hint { color: var(--nx-bad); }

.nx-earn__ticks {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 5px;
  margin-top: 2px;
  max-width: 88px;
}

.nx-earn__ticks > i {
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 999px;
  background: #E2EAF4;
}

.nx-earn__ticks > i.is-on {
  background: var(--earn-c, #0061FF);
}

.nx-earn__kpi.is-ok .nx-earn__ticks > i.is-on {
  background: var(--nx-ok);
}

.nx-earn__kpi.is-low .nx-earn__ticks > i.is-on {
  background: var(--nx-bad);
}

.nx-earn__tip {
  position: relative;
  margin-top: 4px;
  z-index: 1;
}

.nx-earn__tip.is-open {
  z-index: 6;
}

.nx-earn__tip-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  color: #0061FF;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nx-earn__tip-btn:hover,
.nx-earn__tip.is-open .nx-earn__tip-btn {
  color: #0047C2;
}

.nx-earn__tip-bubble {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 30;
  width: min(248px, 78vw);
  padding: 8px 9px 7px;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.35;
  border: 1px solid color-mix(in srgb, var(--earn-c, #0061FF) 35%, #E2EAF4);
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.08);
}

.nx-earn__tip-bubble[hidden] {
  display: none !important;
}

.nx-earn__tip-bubble::after {
  content: "";
  position: absolute;
  left: 14px;
  top: calc(100% - 1px);
  border: 6px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--earn-c, #0061FF) 35%, #E2EAF4));
}

.nx-earn__tip-lead {
  margin: 0 0 6px;
}

.nx-earn__tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nx-earn__tip-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.nx-earn__tip-list span {
  color: #94A3B8;
  font-size: 10px;
  font-weight: 650;
}

.nx-earn__tip-list strong {
  color: #0F172A;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nx-earn__tip-list--levels li.is-current span,
.nx-earn__tip-list--levels li.is-current strong {
  color: var(--nx-ok);
}

.nx-earn__tip-lead strong {
  color: #0F172A;
  font-weight: 700;
}

.nx-earn__tip-foot {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 650;
  color: #64748B;
  line-height: 1.3;
}

.nx-earn__kpi.is-dobro .nx-pill {
  background: var(--nx-ok-soft);
  color: var(--nx-ok);
}

.nx-earn__side .nx-empty {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94A3B8;
}

.nx-sales {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nx-sales__item {
  --sale-c: #0061FF;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px solid #E2EAF4;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 42, 67, 0.02);
  cursor: default;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  animation: nx-sale-in 0.32s ease both;
  animation-delay: calc(var(--sale-i, 0) * 40ms);
}

.nx-sales__item:hover {
  border-color: color-mix(in srgb, var(--sale-c) 22%, #E2EAF4);
  box-shadow: 0 6px 14px rgba(16, 42, 67, 0.05);
  transform: translateY(-1px);
}

.nx-sales__item.is-latest {
  background: #F8FBFF;
  border-color: #D7E4F4;
}

.nx-sales__ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sale-c);
  background: color-mix(in srgb, var(--sale-c) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sale-c) 12%, transparent);
}

.nx-sales__ico svg {
  width: 15px;
  height: 15px;
  display: block;
}

.nx-sales__body {
  min-width: 0;
}

.nx-sales__client {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-sales__meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-sales__end {
  text-align: right;
  min-width: 0;
}

.nx-sales__valor {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.15;
}

.nx-sales__valor small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #94A3B8;
}

.nx-sales__end time {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@keyframes nx-sale-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-earn__kpi {
    transition: none;
  }

  .nx-sales__item {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1000px) {
  .nx-ind__strip { grid-template-columns: repeat(3, 1fr); }
  .nx-goals,
  .nx-earn {
    grid-template-columns: 1fr;
  }
  .nx-goal__main,
  .nx-month__main {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nx-goal__insight {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }
  .nx-goal__facts { grid-template-columns: 1fr 1fr; }
  .nx-earn__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .nx-ind__strip { grid-template-columns: 1fr; }
  .nx-earn__head {
    flex-direction: column;
    align-items: stretch;
  }
  .nx-earn__stats {
    justify-content: stretch;
  }
  .nx-earn__insight,
  .nx-earn__total {
    flex: 1;
  }
  .nx-earn__insight {
    max-width: none;
  }
  .nx-earn__kpis { grid-template-columns: 1fr 1fr; }
}
