/* «Main Style Buttons» — a definição dele (2026-10-01): a barra principal é
   igual em TODAS as páginas (Hoje laranja · Clientes · Buscas · Rentings ·
   Tarefas · Agenda), botões com a mesma forma e só a cor a mudar, tudo
   chegado à esquerda. A página ativa leva um sublinhado branco por dentro.
   Partilhado por index, agenda, tarefas e rentings — mexer AQUI, não nas
   folhas de cada página. */

.msb-bar {
  display: flex; gap: 6px; align-items: center; overflow-x: auto;
  scrollbar-width: none; padding: 8px;
  background: #fff; border-bottom: 1px solid #e4e7ee;
}
.msb-bar::-webkit-scrollbar { display: none; }

.msb {
  align-self: center; border: 0; cursor: pointer;
  background: var(--brand, #1c2b4a); color: #fff; text-decoration: none;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  white-space: nowrap; opacity: .85; font-family: inherit;
  /* Altura IGUAL em botões e links (os <a> e <button> mediam diferente). */
  display: inline-flex; align-items: center; height: 31px; padding: 0 13px;
  box-sizing: border-box; line-height: 1;
}
.msb:hover { opacity: 1; color: #fff; }
.msb.active { opacity: 1; box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .55); }
.msb-laranja { background: #e8801a; }
/* Utilitários (NO GO, Lixo): mesma forma, cinza. O Sair é bordeaux.
   Vivem no limite DIREITO da barra — o spacer empurra-os para lá. */
.msb-cinza { background: #5b6472; }
.msb-bordeaux { background: #711f2e; }
.msb-spacer { flex: 1; }

/* ---------- partilhado: tags clicáveis, @datas e o sugestor ---------- */
.tag-inline { cursor: pointer; }
.tag-inline:hover { text-decoration: underline; }
.data-inline { color: #e8801a; font-weight: 600; }
.sugestor-tags {
  position: fixed; z-index: 400; background: #fff; border: 1px solid #d8dde6;
  border-radius: 8px; box-shadow: 0 10px 28px rgba(15, 25, 50, .16);
  max-height: 230px; overflow: auto; padding: 4px;
}
.sugestor-tags button {
  display: block; width: 100%; text-align: left; border: 0; background: #fff;
  padding: 7px 12px; font-size: 13px; font-weight: 600; color: #2b6cb0;
  cursor: pointer; border-radius: 6px; font-family: inherit;
}
.sugestor-tags button:hover { background: #eef4fb; }
/* © de cliente nos textos: verde; opções de cliente no sugestor idem. */
.cli-inline { color: #1f9d57; font-weight: 600; }
.sugestor-tags button.op-cliente { color: #1f9d57; }
/* Pill verde do cliente (o © torna-se nela; também vive na ficha). */
.cli-pill {
  display: inline-flex; align-items: center; background: #1f9d57; color: #fff;
  border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.cli-pill:hover { background: #188549; color: #fff; }
/* Chip de cliente (preview do © no editor): verde como a pill. */
.chip-tag.chip-cli { background: #1f9d57; border-color: #1f9d57; color: #fff; }
/* Pictogramas dos botões de adiar: herdam a cor do botão. */
.ico-adiar { width: 13px; height: 12px; display: block; fill: currentColor; }

/* Azulejo da data no cabeçalho (lado direito, todas as páginas). */
.cal-hoje {
  margin-left: auto; background: #fff; border-radius: 9px; padding: 3px 10px 5px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  line-height: 1.1; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); flex: 0 0 auto;
}
.cal-topo { font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.cal-topo .cal-dia-semana { color: #d93025; }
.cal-topo .cal-mes { color: #5b6472; }
.cal-num { font-size: 20px; font-weight: 800; color: #14181f; }

/* Cápsulas nas SUBLINHAS das tarefas (tags, WA): metade do tamanho —
   vale em todo o lado onde há tarefas (Tarefas, Hoje, fichas, agenda). */
.chips-linha .chip-tag { font-size: 9px; padding: 1px 6px; gap: 3px; border-radius: 999px; }
.chips-linha .chip-x { font-size: 7px; }
.chips-linha .chip-tag.chip-wa { font-size: 9px; font-weight: 700; }
