/* Tracker Daily — habit copy to next month panel */

.habit-copy-panel {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.habit-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.habit-copy-head strong {
  font-size: 0.95rem;
  color: var(--text);
}

.habit-copy-allrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.habit-copy-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
}

.habit-copy-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.habit-copy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.habit-copy-item:last-child {
  border-bottom: none;
}

.habit-copy-item:hover {
  background: var(--panel-soft);
}

.habit-copy-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.habit-copy-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.habit-copy-item small {
  color: var(--muted);
  flex-shrink: 0;
}

.habit-copy-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.habit-copy-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.habit-copy-panel .primary-button {
  align-self: flex-start;
}

/* Tombol pemicu di form habit (inline dengan tombol lain) */
.habit-form .small-button[data-action="habit-copy-open"] {
  align-self: center;
}
