body {
  font-family: sans-serif;
  padding: 20px;
}

.highlight-box {
  border: 1px solid #ccc;
  padding: 10px;
  background: #f9f9f9;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

table, th, td {
  border: none;
  padding: 8px;
  text-align: left;
}

h2, h3 {
  margin-top: 12px;
}

thead th {
  font-weight: bold;
  background-color: #eaeaea;
}

tbody tr:nth-child(even) {
  background-color: #f3f3f3;
}

tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  font-size: 0.9rem;
}

tr.editing {
  background-color: #ffeec0;
  border-left: 4px solid #f4b400;
}

td:last-child, th:last-child {
  text-align: center;
  width: 60px; /* ou ajuste conforme necessário */
  padding: 4px;
}


/* Envolve os ícones com posicionamento absoluto */
.action-cell {
  position: relative;
  padding: 0;
  background: transparent;
  width: 1px;
}

/* .action-wrapper {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  background: white;
  padding-left: 4px;
  max-width: 100%;
  overflow: hidden;
} */

.action-wrapper {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}


/* Ícones */
.action-btn {
  cursor: pointer;
  font-size: 0.9em;
  user-select: none;
}

.message-cell {
  max-width: 350px; /* ajuste conforme desejado */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agendamento-linha:hover {
  background-color: #f0f8ff;
}

.agendamento-msg {
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agendamento-status {
  font-weight: bold;
  text-transform: uppercase;
}

.agendamento-contato {
  padding: 4px;
}

.contato-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contato-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.contato-nome {
  font-weight: 500;
}

.calendar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.calendar-icon {
  font-size: 1.4em;
  cursor: pointer;
}

.calendar-display {
  font-weight: bold;
  min-width: 100px;
}

.calendar-input {
  display: none; /* ativado apenas pelo flatpickr */
}

.msg-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px;
  font-size: 1rem;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  background-color: #2d8cff;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-secundario {
  background-color: #eee;
  color: #333;
  padding: 6px 12px;
  border: 1px solid #bbb;
  border-radius: 4px;
  cursor: pointer;
}

#schedule-form {
  overflow-x: auto;
}

#schedule-form.editing .msg-input {
  border-color: #f4b400;
  background-color: #fffce6;
}

#tooltip-msg {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #323232;
  color: white;
  padding: 10px 16px;
  border-radius: 5px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#tooltip-msg.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.modal-content {
  background: white;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-width: 320px;
  text-align: center;
}

.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.highlight-box {
  overflow-x: auto;
}

.chatwoot-link {
  color: #2d8cff;
  font-size: 0.9em;
  text-decoration: underline;
}
