/* Reunião: "o que aconteceu?" (lista, aviso, previsão, formulário, painel) e comentários da reunião. */

/* ── Reunião: "o que aconteceu?" (coluna da lista, aviso, previsão, formulário da reunião e painel) ───── */

/* Botões da resposta (por extenso: previsão e painel) */
.mt-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 1) Coluna Reunião */
.mt-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.crm-v2 .meeting-btn.v2-meet.mt-when {
  color: var(--error);
  white-space: nowrap;
}

.crm-v2 .meeting-btn.v2-meet.mt-when .one i {
  margin: 0 3px;
  font-style: normal;
  opacity: 0.55;
}

.crm-v2 .meeting-btn.v2-meet.mt-when small {
  margin-left: -1px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--error);
  opacity: 0.8;
}

.mt-q {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.mt-q>span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.mt-q>span:only-child {
  color: var(--error);
}

.mt-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: var(--gap-ico);
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong, var(--border));
  background: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
}

.mt-pill svg {
  width: var(--ico-sm);
  height: var(--ico-sm);
}

.mt-pill.yes {
  border-color: #437a22;
  background: #437a22;
  color: #fff;
}

.mt-pill.yes:hover {
  background: #386a1b;
}

.mt-pill.no {
  border-color: color-mix(in srgb, var(--error) 45%, #fff);
  color: var(--error);
  padding-right: 6px;
}

.mt-pill.no svg:last-child {
  width: 10px;
  height: 10px;
  margin-left: -1px;
  opacity: 0.7;
}

.mt-pill.no:hover {
  background: color-mix(in srgb, var(--error) 7%, #fff);
}

/* Menu do "Não" */
.mt-menu {
  min-width: 290px;
}

.mt-menu-title {
  padding: 6px 10px 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mt-menu button {
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
}

.mt-menu button .ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1eee8;
  color: var(--ink-2);
}

.mt-menu button .ic.no {
  background: color-mix(in srgb, var(--error) 12%, #fff);
  color: var(--error);
}

.mt-menu button .ic svg {
  width: var(--ico);
  height: var(--ico);
}

.mt-menu button b {
  display: block;
  font-size: 13px;
}

.mt-menu button small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

/* 2) Aviso acima da lista */
.mt-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 10px;
  padding: 9px 12px 9px 13px;
  border: 1px solid color-mix(in srgb, var(--error) 28%, #fff);
  border-left: 4px solid var(--error);
  border-radius: 10px;
  background: color-mix(in srgb, var(--error) 5%, #fff);
  font-size: 13px;
  color: var(--ink-2);
}

.mt-bar[hidden] {
  display: none;
}

.mt-bar .ic {
  flex: none;
  display: inline-flex;
  color: var(--error);
}

.mt-bar .ic svg {
  width: var(--ico-only);
  height: var(--ico-only);
}

.mt-bar .tx {
  flex: 1;
  min-width: 0;
}

.mt-bar .tx strong {
  color: var(--ink);
  margin-right: 4px;
}

.mt-bar-btn {
  appearance: none;
  flex: none;
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--error);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--error);
  cursor: pointer;
}

.mt-bar-btn:hover {
  background: color-mix(in srgb, var(--error) 8%, #fff);
}

.mt-bar.on {
  background: color-mix(in srgb, var(--error) 10%, #fff);
}

.mt-bar.on .mt-bar-btn {
  background: var(--error);
  color: #fff;
}

/* 3) Faixa no alto de "Atualizar previsão" (e no painel) */
.mt-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px 11px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line-strong, var(--border));
  background: #faf8f4;
}

.mt-strip .ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #efece6;
  color: var(--ink-2);
}

.mt-strip .ic svg {
  width: var(--ico-only);
  height: var(--ico-only);
}

.mt-strip .tx {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12.5px;
  color: var(--muted);
}

.mt-strip .tx strong {
  font-size: 13.5px;
  color: var(--ink);
}

.mt-strip.warn {
  border-color: color-mix(in srgb, var(--error) 35%, #fff);
  background: color-mix(in srgb, var(--error) 5%, #fff);
}

.mt-strip.warn .ic {
  background: color-mix(in srgb, var(--error) 14%, #fff);
  color: var(--error);
}

.mt-strip.ok {
  border-color: color-mix(in srgb, #437a22 35%, #fff);
  background: color-mix(in srgb, #437a22 6%, #fff);
}

.mt-strip.ok .ic {
  background: color-mix(in srgb, #437a22 16%, #fff);
  color: #2f6a14;
}

.mt-strip.info {
  border-style: dashed;
}

.mt-strip.thin {
  padding: 6px 10px;
  margin-bottom: 12px;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.mt-strip.thin .ic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: none;
  color: var(--error);
}

.mt-strip.thin .tx {
  flex-direction: row;
}

.mt-strip .mt-acts {
  grid-column: 2;
}

.mt-strip .mt-later {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.mt-strip.shake {
  animation: mt-shake 0.32s ease-in-out;
}

@keyframes mt-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

#drawerMeetingAsk {
  margin: 0 22px 14px;
}

.mt-strip[hidden],
.mt-cards[hidden] {
  display: none;
}

/* 4) Formulário da reunião: primeiro a resposta, depois os campos */
.mt-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 6px;
}

.mt-card {
  appearance: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong, var(--border));
  border-radius: 11px;
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.mt-card .ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f1eee8;
  color: var(--ink-2);
}

.mt-card .ic svg {
  width: var(--ico-only);
  height: var(--ico-only);
}

.mt-card b {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.mt-card small {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}

.mt-card:hover {
  border-color: #b9b4a9;
  background: #faf8f4;
}

.mt-card.yes .ic {
  background: color-mix(in srgb, #437a22 16%, #fff);
  color: #2f6a14;
}

.mt-card.yes:hover {
  border-color: #437a22;
}

.mt-card.no .ic {
  background: color-mix(in srgb, var(--error) 13%, #fff);
  color: var(--error);
}

.mt-card.no:hover {
  border-color: var(--error);
}

.mt-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 22%, #fff);
  background: var(--primary-soft);
}

/* enquanto a pessoa não escolheu "Mudou a data", os campos de data ficam guardados */
#meetingModal.mt-choosing .c-field,
#meetingModal.mt-canceling .c-field,
#meetingModal.mt-choosing #meetingSaveBtn,
#meetingModal.mt-canceling #meetingSaveBtn {
  display: none;
}

#meetingModal.mt-choosing #meetingCancelBtn,
#meetingModal.mt-moving #meetingCancelBtn {
  display: none;
}

@media (max-width: 640px) {
  .mt-cards {
    grid-template-columns: 1fr;
  }

  .mt-bar {
    flex-wrap: wrap;
  }
}

/* ══ Comentários da reunião (antes de ela acontecer) ══════════════════════
   Balão na coluna Reunião, conversa no formulário da reunião, no painel do lead, no calendário e no relato. */
/* ── Conversa ── */
.cm-thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cm-item {
  padding: 8px 10px 9px;
  border-radius: 10px;
  background: #f6f3ed;
  border-left: 3px solid var(--border);
}

.cm-item.mine {
  background: var(--primary-soft);
  border-left-color: var(--primary);
}

.cm-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 12px;
  line-height: 1.3;
}

.cm-meta b {
  font-weight: 700;
  color: var(--text, #28251d);
}

.cm-meta span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cm-meta i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.cm-item p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text, #28251d);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cm-empty {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Novo comentário ── */
.cm-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: end;
}

.cm-thread+.cm-add,
.cm-empty+.cm-add {
  margin-top: 8px;
}

.crm-v2 .cm-add textarea.cm-input.c-input {
  min-height: 36px !important;
  height: 36px;
  max-height: 120px;
  padding: 7px 10px !important;
  border-radius: var(--r-ctl, 9px);
  resize: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  width: 100%;
}

.cm-send {
  appearance: none;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-ctl, 9px);
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cm-send:hover {
  filter: brightness(1.08);
}

.cm-send:disabled {
  background: #e6e2d9;
  color: #a39f96;
  cursor: default;
  filter: none;
}

.cm-add .cm-error {
  grid-column: 1 / -1;
  margin: 0;
}

/* ── Lista: balão ao lado da data da reunião ── */
.cm-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cm-badge {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: var(--gap-ico-sm);
  height: 22px;
  padding: 0 7px 0 6px;
  border: 1px solid var(--line-strong, var(--border));
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  flex: none;
}

.cm-badge svg {
  width: var(--ico-sm);
  height: var(--ico-sm);
}

.cm-badge:hover,
.cm-badge.on {
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* ── Balão de comentários (lista) ── */
.cm-pop {
  position: fixed;
  z-index: 1200;
  width: 340px;
}

.cm-pop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-bottom: 1px solid #ece8df;
  background: #faf8f4;
}

.cm-pop-head .ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  flex: none;
}

.cm-pop-head .ic svg {
  width: var(--ico-only);
  height: var(--ico-only);
}

.cm-pop-head>div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cm-pop-head strong {
  font-size: 13.5px;
}

.cm-pop-head div span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-pop .cm-box {
  padding: 12px 14px 14px;
}

.cm-pop .cm-thread {
  max-height: 250px;
}

/* ── Formulário da reunião ── */
#meetingModal.mt-choosing .c-field.cm-field,
#meetingModal.mt-canceling .c-field.cm-field {
  display: flex;
}

.cm-count:empty {
  display: none;
}

.cm-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
}

.crm-v2 .cm-new {
  min-height: 62px;
}

.cm-prev {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 2px;
}

/* ── Painel do lead ── */
.cm-drawer-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #dcd7cc;
  border-radius: 8px;
}

.cm-drawer-block h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.cm-drawer-block.flash {
  animation: cm-flash 1.1s ease-out;
}

@keyframes cm-flash {
  0% {
    box-shadow: 0 0 0 6px rgba(1, 105, 111, 0.22);
  }

  100% {
    box-shadow: 0 0 0 6px rgba(1, 105, 111, 0);
  }
}

.cm-strip {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 44px);
  margin: 0 22px 14px;
  padding: 9px 12px;
  border: 1px solid #cfe1df;
  border-radius: 12px;
  background: var(--primary-soft);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text, #28251d);
}

.cm-strip .ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  flex: none;
}

.cm-strip .ic svg {
  width: var(--ico-only);
  height: var(--ico-only);
}

.cm-strip .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cm-strip .tx strong {
  font-size: 13px;
}

.cm-strip .tx>span {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-strip .go {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
}

.cm-strip:hover {
  border-color: var(--primary);
}

/* ── Calendário ── */
.cal-pop-body .row.cm-row {
  grid-template-columns: 1fr;
  gap: 6px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid #ece8df;
}

.cal-pop-body .row.cm-row>span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cal-pop .cm-thread {
  max-height: 150px;
}

.cal-pop .cm-item p {
  font-size: 12.5px;
}

.cal-pop-body .cm-meta span {
  display: inline;
  font-size: 12px;
  padding: 0;
}

.cm-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-ico-sm);
  margin-left: auto;
  padding-left: 4px;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
  flex: none;
}

.cm-mark svg {
  width: var(--ico-sm);
  height: var(--ico-sm);
}

/* ── Relato da reunião ── */
#heldComments.cm-held {
  margin: 0 0 16px;
  padding: 10px 12px 12px;
  border: 1px solid #e3ded4;
  border-radius: 12px;
  background: #fbfaf7;
}

.cm-held-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cm-held-title .ic svg {
  width: var(--ico);
  height: var(--ico);
  display: block;
}

.cm-held .cm-thread {
  max-height: 132px;
}

@media (max-width: 520px) {
  .cm-add {
    grid-template-columns: 1fr;
  }

  .cm-send {
    width: 100%;
  }
}

/* ── Alterar e excluir ── */
.cm-meta em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}

.cm-tools {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
}

.crm-v2 .cm-tools .c-btn--link {
  padding: 0 4px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}

.cm-item.editing .cm-tools {
  display: none;
}

.cm-edit {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crm-v2 .cm-edit textarea.cm-edit-input.c-input {
  min-height: 56px !important;
  height: auto;
  max-height: 160px;
  padding: 7px 10px !important;
  resize: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  width: 100%;
  background: #fff;
  border-radius: var(--r-ctl, 9px);
}

.cm-edit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cm-edit-actions .cm-send {
  height: 32px;
}

.cm-item>.cm-error {
  margin: 6px 0 0;
}

/* Calendário, visão de semana: a marca fica no canto do bloco */
.cal-ev.blk.has-cm {
  padding-right: 30px;
}

.cal-ev.blk .cm-mark {
  position: absolute;
  top: 5px;
  right: 6px;
  margin: 0;
  padding: 0;
}

.cm-strip[hidden],
.cm-held[hidden] {
  display: none;
}
