/* V4 4.4: checklist compartilhada do cliente (equipe, área do cliente e portal). */
.ck-panel {
  display: grid;
  gap: 12px;
}
.ck-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ck-head strong {
  display: block;
}
.ck-head small {
  color: var(--muted, #6b7280);
}
.ck-ring {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
}
.ck-ring svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}
.ck-ring circle {
  fill: none;
  stroke-width: 6;
}
.ck-ring-bg {
  stroke: var(--line, #e5e7eb);
}
.ck-ring-fg {
  stroke: var(--accent, #16a974);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s;
}
.ck-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.ck-tabs {
  justify-self: start;
  max-width: 100%;
  overflow-x: auto;
}
.ck-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ck-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  background: var(--panel, #fff);
}
.ck-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}
.ck-check input {
  margin-top: 3px;
  accent-color: var(--accent, #16a974);
  width: 16px;
  height: 16px;
  flex: none;
}
.ck-check span {
  overflow-wrap: anywhere;
}
.ck-item.is-done .ck-check span {
  text-decoration: line-through;
  color: var(--muted, #6b7280);
}
.ck-meta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-left: 24px;
  font-size: 12px;
}
.ck-meta small {
  color: var(--muted, #6b7280);
}
.ck-who {
  border-radius: 999px;
  padding: 1px 8px;
  background: #eef2ff;
  color: #3730a3;
}
.ck-who.is-client {
  background: #fef3c7;
  color: #92400e;
}
.ck-due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted, #6b7280);
}
.ck-due svg {
  width: 12px;
  height: 12px;
}
.ck-due.is-late {
  color: #b42318;
}
.ck-del {
  grid-column: 2;
  grid-row: 1 / span 2;
  border: 0;
  background: none;
  color: var(--muted, #6b7280);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.ck-del:hover {
  color: #b42318;
  background: #fef2f2;
}
.ck-del svg {
  width: 16px;
  height: 16px;
}
.ck-empty {
  color: var(--muted, #6b7280);
  padding: 8px 0;
}
.ck-form {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line, #e5e7eb);
  padding-top: 12px;
}
.ck-form input,
.ck-form select {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: var(--panel, #fff);
  color: inherit;
  min-width: 0;
}
.ck-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.ck-form-row label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted, #6b7280);
  flex: 1 1 120px;
}
.ck-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  background: #18181b;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.ck-add svg {
  width: 16px;
  height: 16px;
}
.ck-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
}
.ck-error:empty {
  display: none;
}

/* V4 4.5: notas do cliente. */
.nt-panel {
  display: grid;
  gap: 12px;
}
.nt-panel .nt-form {
  display: grid;
  gap: 8px;
}
.nt-panel .nt-form input[name="title"],
.nt-panel .nt-form textarea {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: var(--panel, #fff);
  color: inherit;
  min-width: 0;
  resize: vertical;
}
.nt-panel .nt-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.nt-panel .nt-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  font-size: 14px;
  cursor: pointer;
}
.nt-panel .nt-share input {
  accent-color: var(--accent, #16a974);
}
.nt-panel .nt-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  background: #18181b;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.nt-panel .nt-save svg,
.nt-panel .nt-ghost svg,
.nt-panel .nt-tag svg {
  width: 14px;
  height: 14px;
}
.nt-panel .nt-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line, #e5e7eb);
  background: var(--panel, #fff);
  color: inherit;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.nt-panel .nt-del:hover {
  color: #b42318;
}
.nt-panel .nt-tabs {
  justify-self: start;
}
.nt-panel .nt-tabs small {
  opacity: 0.6;
}
.nt-panel .nt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.nt-panel .nt-card {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 12px;
  background: var(--panel, #fff);
  display: grid;
  gap: 6px;
}
.nt-panel .nt-card header,
.nt-panel .nt-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}
.nt-panel .nt-card header strong {
  overflow-wrap: anywhere;
}
.nt-panel .nt-card p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.nt-panel .nt-card footer small {
  color: var(--muted, #6b7280);
}
.nt-panel .nt-card footer span {
  display: flex;
  gap: 6px;
}
.nt-panel .nt-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
}
.nt-panel .nt-tag.is-shared {
  background: #ecfdf5;
  color: #047857;
}
.nt-panel .nt-empty {
  color: var(--muted, #6b7280);
  padding: 8px 0;
}
.nt-panel .nt-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
}
.nt-panel .nt-error:empty {
  display: none;
}
.ck-sub {
  margin: 20px 0 8px;
  font-size: 15px;
}
.ck-tabs,
.nt-panel .nt-tabs {
  flex-wrap: nowrap;
}
.ck-tabs > button,
.nt-panel .nt-tabs > button {
  white-space: nowrap;
}

/* V4 4.6: observação no envio de arquivos. */
.cf-note-field {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  font-size: 13px;
}
.cf-note-field span small {
  color: var(--muted, #6b7280);
}
.cf-note-field textarea {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: var(--panel, #fff);
  color: inherit;
  resize: vertical;
  min-width: 0;
}
.cf-note-count {
  justify-self: end;
  color: var(--muted, #6b7280);
  font-size: 11px;
}
.cf-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted, #52525b);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.cf-note svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 2px;
}
.portal-file-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  color: var(--muted, #52525b);
  overflow-wrap: anywhere;
}

/* Pedir ajuda (06/11/2026): Ajudar na notificação. */
.nt-helpcall {
  display: grid;
  gap: 4px;
}
.nt-helpcall .dark-button {
  justify-self: start;
  margin-top: 4px;
}

/* V4 4.7: equipe do cliente. */
.ct-form {
  display: grid;
  gap: 10px;
}
.ct-form > input {
  font: inherit;
  padding: 9px 10px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: var(--panel, #fff);
  color: inherit;
  min-width: 0;
}
.ct-sections {
  border: 0;
  margin: 0;
  padding: 0;
}
.ct-sections legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.ct-sections legend small {
  font-weight: 400;
  color: var(--muted, #6b7280);
}
.ct-sections > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ct-sections label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.ct-sections input {
  accent-color: var(--accent, #16a974);
}
.ct-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ct-member {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.ct-who {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.ct-who div {
  min-width: 0;
}
.ct-who strong,
.ct-who small {
  display: block;
  overflow-wrap: anywhere;
}
.ct-who small {
  color: var(--muted, #6b7280);
}
.ct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}
.ct-chips span {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f4f4f5;
}
.ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.ct-link {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: #f0fdf4;
}
.ct-link p {
  margin: 0 0 6px;
  font-size: 13px;
}
.ct-copy {
  display: flex;
  gap: 6px;
}
.ct-copy input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 12px;
  padding: 7px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
}

/* V4 4.8: contrato e faturas no portal. */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-top: 16px;
}
.bl-services,
.bl-items,
.bl-charges {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bl-services {
  display: grid;
  gap: 12px;
}
.bl-services > li {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 6px;
}
.bl-services header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}
.bl-services header strong {
  overflow-wrap: anywhere;
}
.bl-services > li > small {
  color: var(--muted, #6b7280);
}
.bl-tag {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}
.bl-items li,
.bl-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px dashed var(--line, #e5e7eb);
  margin: 0;
}
.bl-items li span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.bl-items small {
  display: block;
  color: var(--muted, #6b7280);
  font-size: 12px;
}
.bl-items b,
.bl-total b {
  white-space: nowrap;
}
.bl-total {
  font-weight: 600;
}
.bl-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.bl-tile {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.bl-tile span,
.bl-tile small {
  font-size: 11px;
  color: var(--muted, #6b7280);
}
.bl-tile strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.bl-tile.is-late strong {
  color: #b42318;
}
.bl-tile.is-paid strong {
  color: #047857;
}
.bl-calm {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #047857;
  margin: 0 0 10px;
}
.bl-calm svg {
  width: 16px;
  height: 16px;
}
.bl-charges {
  display: grid;
  gap: 6px;
}
.bl-charges li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 10px 12px;
}
.bl-charges li div {
  min-width: 0;
}
.bl-charges li b {
  display: block;
  overflow-wrap: anywhere;
}
.bl-charges li small {
  color: var(--muted, #6b7280);
}
.bl-charges .cpo-state {
  grid-column: 2;
  justify-self: end;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}
.bl-charges .cpo-state.is-bad {
  background: #fef2f2;
  color: #b42318;
}
.bl-charges .cpo-state.is-ok {
  background: #ecfdf5;
  color: #047857;
}
.bl-empty {
  color: var(--muted, #6b7280);
}
@media (max-width: 420px) {
  .bl-tiles {
    grid-template-columns: 1fr;
  }
}

/* V4 4.9: áudio no chat. */
.an-mic {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 999px;
  background: var(--panel, #fff);
  color: inherit;
  cursor: pointer;
}
.an-mic svg {
  width: 18px;
  height: 18px;
}
.an-mic:hover,
.an-mic:focus-visible {
  border-color: var(--accent, #16a974);
  color: var(--accent, #16a974);
}
.an-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 12px;
  background: #fef2f2;
  color: #7f1d1d;
  font-size: 14px;
}
.an-bar span {
  margin-right: auto;
}
.an-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  animation: an-pulse 1s infinite;
}
@keyframes an-pulse {
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .an-dot {
    animation: none;
  }
}
.an-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #fecaca;
  background: #fff;
  color: inherit;
}
.an-bar .an-stop {
  background: #18181b;
  border-color: #18181b;
  color: #fff;
}
.an-bar svg {
  width: 14px;
  height: 14px;
}
.an-note {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.an-note > svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.6;
}
.an-note audio {
  height: 36px;
  min-width: 0;
  width: 240px;
  max-width: 100%;
}
.an-note small {
  opacity: 0.7;
  font-size: 11px;
}
