/* Onboarding (02/11/2026): cartões por cliente com anel de progresso e a
   corrente de etapas. Laranja marca o progresso; verde, a etapa feita. */
.ob-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ob-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.ob-head-ico {
  color: var(--accent);
}
.ob-head-ico .icon {
  width: 28px;
  height: 28px;
}
.ob-head h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.ob-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.ob-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ob-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ob-tabs button .icon {
  width: 14px;
  height: 14px;
}
.ob-tabs button.on {
  background: var(--accent);
  color: var(--on-accent);
}
.ob-new {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.ob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}
.ob-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.ob-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -20px rgba(21, 22, 26, 0.45);
}
.ob-card > header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ob-card > header > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.ob-card strong {
  font-size: 17px;
}
.ob-card small {
  color: var(--muted);
  font-size: 12px;
}
.ob-face {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  background: var(--tone);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.ob-due {
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.ob-due::before {
  content: "• ";
}
.ob-due.is-late {
  background: #e0464f;
  color: #fff;
}
.ob-due.is-done {
  background: var(--mint);
  color: var(--mint-ink);
}
.ob-pct {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
}
.ob-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.ob-ring circle {
  fill: none;
  stroke-width: 5;
}
.ob-ring-bg {
  stroke: var(--line);
}
.ob-ring-fg {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s var(--ease);
}
.ob-pct b {
  position: relative;
  font-size: 17px;
}
.ob-pct small {
  font-size: 10px;
}
.ob-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ob-steps li {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--subtle);
  color: var(--faint);
}
.ob-steps li + li {
  margin-left: 18px;
}
.ob-steps li + li::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--line-2);
}
.ob-steps li.is-done + li::before,
.ob-steps li.is-done + li.is-done::before {
  background: var(--accent);
}
.ob-steps .icon {
  width: 14px;
  height: 14px;
}
.ob-steps li.is-done {
  background: var(--accent);
  color: var(--on-accent);
}
.ob-steps li.is-now {
  background: #fde5c4;
  color: #b35f00;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  animation: ob-now 1.8s ease-in-out infinite;
}
.ob-steps li i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #16a37a;
  color: #fff;
}
.ob-steps li i .icon {
  width: 8px;
  height: 8px;
}
.ob-now {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}
@keyframes ob-now {
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 10%, transparent);
  }
}
.ob-check {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.ob-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--subtle);
  cursor: pointer;
}
.ob-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.ob-check-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  color: #b35f00;
}
.ob-check-ico .icon {
  width: 14px;
  height: 14px;
}
.ob-check label > span:last-child {
  display: flex;
  flex-direction: column;
}
.ob-check small {
  color: var(--muted);
  font-size: 11px;
}
@media (prefers-reduced-motion: reduce) {
  .ob-steps li.is-now {
    animation: none;
  }
}
@media (max-width: 600px) {
  .ob-tools {
    width: 100%;
    margin-left: 0;
  }
  .ob-tabs {
    flex: 1 1 100%;
  }
  .ob-tabs button {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
  }
  .ob-new {
    width: 100%;
  }
  .ob-steps li + li {
    margin-left: 10px;
  }
  .ob-steps li + li::before {
    width: 10px;
  }
}

/* Monitoramento de demandas no Início (02/11/2026). */
.mon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 16px;
}
.mon h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.mon-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.mon-stats strong {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.mon-stats small {
  color: var(--muted);
  font-size: 12px;
}
.mon-load {
  padding: 18px 20px;
  border-radius: 22px;
  background: #18181b;
  color: #fafafa;
}
.mon-load h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
}
.mon-load h3 .icon {
  width: 16px;
  height: 16px;
}
.mon-load ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mon-load li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mon-load li b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mon-n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: #27272a;
  color: #a1a1aa;
  font-size: 12px;
}
.mon-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #27272a;
  color: #fafafa;
  font-size: 12px;
}
.mon-empty {
  margin: 0;
  color: #a1a1aa;
  font-size: 13px;
}
@media (max-width: 600px) {
  .mon-stats {
    padding: 14px;
  }
  .mon-stats strong {
    font-size: 24px;
  }
}
/* "Quem está sobrecarregado" no fim do Início (03/11/2026). */
.mon.mon-end {
  margin: 20px 0 0;
}

/* Ajudar quem está sobrecarregado (02/11/2026). */
.mon-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #3f3f46;
  border-radius: 999px;
  background: transparent;
  color: #fafafa;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mon-help .icon {
  width: 14px;
  height: 14px;
}
.mon-help:hover,
.mon-help:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent, #fff);
}
.hp-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
}
.hp-lead b {
  color: var(--text);
}
.hp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(46vh, 380px);
  margin-bottom: 12px;
  overflow: auto;
}
.hp-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.hp-task:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
.hp-task:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.hp-task input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.hp-task > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.hp-task b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-task small {
  color: var(--muted);
  font-size: 12px;
}
.hp-task.is-sent {
  cursor: default;
  opacity: 0.7;
}
.hp-chip {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft, #f4f4f5);
  color: var(--muted);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
}
.hp-chip.is-late {
  background: #fde8e8;
  color: #b42318;
}
.hp-empty,
.hp-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.hp-panel {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.hp-panel header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.hp-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent, #fff);
}
.hp-ico .icon {
  width: 18px;
  height: 18px;
}
.hp-panel h2 {
  margin: 0;
  font-size: 16px;
}
.hp-panel header small {
  color: var(--muted);
  font-size: 12.5px;
}
.hp-panel ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-panel li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
}
.hp-panel li > div {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
}
.hp-panel li small {
  color: var(--muted);
}
.hp-panel q {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-style: italic;
}
.hp-task-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-underline-offset: 3px;
  cursor: pointer;
}
.hp-actions {
  display: flex;
  flex: none;
  gap: 8px;
}
@media (max-width: 600px) {
  .mon-help {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
  }
  .mon-help span {
    display: none;
  }
  .hp-panel li {
    flex-direction: column;
    align-items: stretch;
  }
  .hp-actions > * {
    flex: 1;
  }
}
/* Etapas personalizáveis (03/11/2026). */
.ob-check label {
  width: 100%;
  box-sizing: border-box;
}
.ob-tpl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ob-tpl .icon {
  width: 15px;
  height: 15px;
}
.ob-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ob-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ob-edit li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 14px;
  background: var(--subtle);
}
.ob-edit input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.ob-row-tools {
  display: flex;
  gap: 2px;
}
.ob-ib {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.ob-ib:hover:not(:disabled) {
  background: var(--surface);
  color: var(--text);
}
.ob-ib:disabled {
  opacity: 0.35;
  cursor: default;
}
.ob-ib .icon {
  width: 15px;
  height: 15px;
}
.ob-pick {
  position: relative;
}
.ob-pick summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: #b35f00;
  list-style: none;
  cursor: pointer;
}
.ob-pick summary::-webkit-details-marker {
  display: none;
}
.ob-pick summary::marker {
  content: "";
}
.ob-pick > summary::before {
  content: none;
  display: none;
}
.ob-pick summary .icon {
  width: 16px;
  height: 16px;
}
.ob-pick-grid {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 36px);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ob-pick-grid button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.ob-pick-grid button:hover,
.ob-pick-grid button.on {
  background: var(--subtle);
  color: var(--accent);
}
.ob-pick-grid .icon {
  width: 16px;
  height: 16px;
}
.ob-add {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
}
.ob-add .icon {
  width: 14px;
  height: 14px;
}
.ob-default {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
}
.ob-default input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
@media (max-width: 420px) {
  .ob-edit li {
    gap: 4px;
    padding: 6px;
  }
  .ob-ib {
    width: 28px;
  }
  .ob-pick-grid {
    grid-template-columns: repeat(4, 36px);
  }
}
